code: public static String getBaseUrl(String url, Logger logger) {
      String answer = url;
      switch (identify(url)) {
        case COMPOSUM:
          answer = url.substring(0, url.indexOf(COMPOSUM_URL));
          break;
        case CRX:
          answer = url.substring(0, url.indexOf(CRX_URL));
          break;
        default:
          logger.error("Given URL is not supported: " + url);
      }
      return answer;
    }
docs: Returns the Base Url of a given URL with
  based on its Vendors from the URL
  @param url Service URL
  @param logger Logger
  @return Base URL if service vendor was found otherwise the given URL