code: public Value createValue(Node value) throws RepositoryException
     {
        if (value == null)
           return null;
        if (!value.isNodeType("mix:referenceable"))
           throw new ValueFormatException("Node " + value.getPath() + " is not referenceable");
        try
        {
           if (value instanceof NodeImpl)
           {
              Identifier identifier = new Identifier(((NodeImpl)value).getInternalIdentifier());
              return new ReferenceValue(new TransientValueData(identifier));
           }
           else
           {
              throw new RepositoryException("Its need a NodeImpl instance of Node");
           }
        }
        catch (IOException e)
        {
           throw new RepositoryException("Cannot create REFERENE Value from Node", e);
        }
     }
docs: {@inheritDoc}