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