@Override
  public String apply(Parameter input) {
    return input.getName();
  }
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