api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/URLBuilder.java
public static URLBuilder createFrom(final List<String> segments, final Metadata metadata)
   {
      return URLBuilder.createNew().appendPathSegments(segments).setMetadata(metadata);
   }
public static URLBuilder createFrom(final List<String> segments, final Metadata metadata)
   {
      return URLBuilder.createNew().appendPathSegments(segments).setMetadata(metadata);
   }
Create a new instance of {@link URLBuilder} from the given URL path segments and {@link Metadata}.