code: 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));
      }
docs: Create a JCR value from an RDFNode for a given JCR property
  @param node the JCR node we want a property for
  @param data an RDF Node (possibly with a DataType)
  @param propertyName name of the property to populate (used to use the right type for the value)
  @return the JCR value from an RDFNode for a given JCR property
  @throws RepositoryException if repository exception occurred