code: public static String getPropertyNameFromPredicate(final Node node,
                                                        final Resource predicate,
                                                        final Map<String, String> namespaceMapping)
              throws RepositoryException {
  
          final NamespaceRegistry namespaceRegistry = (NamespaceRegistry)getNamespaceRegistry(node.getSession());
  
          return getPropertyNameFromPredicate(namespaceRegistry,
                  predicate, namespaceMapping);
      }
docs: Given an RDF predicate value (namespace URI + local name), figure out
  what JCR property to use
  
  @param node the JCR node we want a property for
  @param predicate the predicate to map to a property name
  @param namespaceMapping prefix to uri namespace mapping
  @return the JCR property name
  @throws RepositoryException if repository exception occurred