@Override
  public String toString() {
    return "NestedApiRecord {" +
        "nestedApi=" + nestedApi +
        ", parentApi=" + parentApi +
        ", parentApiPath='" + parentApiPath + '\'' +
        ", parentMethod=" + parentMethod +
        ", parentMethodPath='" + parentMethodPath + '\'' +
        '}';
  }
Joins path elements properly with slashes avoiding duplicate slashes.

@param firstPath the first path element
@param paths optionally other path elements
@return the joined path
ambari-utility/src/main/java/org/apache/ambari/swagger/AmbariSwaggerReader.java