code: public static String joinPaths(String prefix, String path, boolean generatedPath) {
  
  		String result = null;
  		if (generatedPath) {
  			result = joinDomainToPath(prefix, path);
  		} else {
  			result = joinPaths(prefix, path);
  		}
  		return result;
  	}
docs: Normalizes two paths and joins them as a single path.
  
  @param prefix
  @param path
  @return the joined path