private static String normalizeDpmBaseURL(String url) {
    if (url.endsWith("/")) {
      url = url.substring(0, url.length() - 1);
    }

    return url;
  }
private static String normalizeDpmBaseURL(String url) {
    if (url.endsWith("/")) {
      url = url.substring(0, url.length() - 1);
    }

    return url;
  }
private static String normalizeDpmBaseURL ( String url ) { if ( url . endsWith ( "/" ) ) { url = url . substring ( 0 , url . length ( ) - 1 ) ; } return url ; }
Normalize Control Hub URL - primarily drop training slash.
Normalize Control Hub URL - primarily drop training slash .