/** * Creates an object node using a literal value. * * @param value The value of the literal * @param elementFactory The factory for creating nodes * @return The object node representing the literal * @throws MetaDataException */ public static ObjectNode createObjectLiteral(String value, GraphElementFactory elementFactory) throws MetaDataException { try { // The default type is file return (ObjectNode) elementFactory.createLiteral(value); } catch (GraphElementFactoryException graphElementFactoryException) { throw new MetaDataException( "Failed to create object node for " + value, graphElementFactoryException); } }