@ Nullable public static ResourceName createFromFullName ( PathTemplate template , String path ) { ImmutableMap < String , String > values = template . matchFromFullName ( path ) ; if ( values == null ) { return null ; } return new ResourceName ( template , values , null ) ; }
Creates a new resource name based on given template and path where the path contains an endpoint . If the path does not match null is returned .