public static String toPath ( final IdentifierConverter < Resource , FedoraResource > idTranslator , final String originalPath ) { final Resource resource = idTranslator . toDomain ( originalPath ) ; final String path = idTranslator . asString ( resource ) ; return path . isEmpty ( ) ? "/" : path ; }
Convert a JAX - RS list of PathSegments to a JCR path