class AmbariSwaggerReader extends JaxrsReader {

  static String joinPaths(String firstPath, String... paths) {
    StringBuilder joined = new StringBuilder(firstPath);
    for(String path: paths) {
      if (path.isEmpty()) { /* NOP */ }
      else if (joined.length() == 0) {
        joined.append(path);
      }
      else if (joined.charAt(joined.length() - 1) == '/') {
        if (path.startsWith("/")) {
          joined.append(path.substring(1, path.length()));
        }
        else {
          joined.append(path);
        }
      }
      else {
        if (path.startsWith("/")) {
          joined.append(path);
        }
        else {
          joined.append('/').append(path);
        }

      }
    }
    return joined.toString();
  }

  public  AmbariSwaggerReader(Swagger swagger, Log LOG);

}