code: 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;
      }
docs: Convert a JAX-RS list of PathSegments to a JCR path
  
  @param idTranslator the id translator
  @param originalPath the original path
  @return String jcr path