public Value createValue ( final Node node , final RDFNode data , final String propertyName ) throws RepositoryException { final ValueFactory valueFactory = node . getSession ( ) . getValueFactory ( ) ; return createValue ( valueFactory , data , getPropertyType ( node , propertyName ) . orElse ( UNDEFINED ) ) ; }
Create a JCR value from an RDFNode for a given JCR property