code: public static URLBuilder createFrom(final List<String> segments, final Metadata metadata,
              final QueryStringBuilder query)
     {
        return URLBuilder.createNew().appendPathSegments(segments).setMetadata(metadata).setQueryString(query);
     }
docs: Create a new instance of {@link URLBuilder} from the given URL segments, {@link Metadata}, and
  {@link QueryStringBuilder}.