public static final NodeData createNodeData ( ) { if ( ndImpl == null ) { try { @ SuppressWarnings ( "unchecked" ) Class < ? extends NodeData > clazz = ( Class < ? extends NodeData > ) Class . forName ( DEFAULT_NODE_DATA_IMPL ) ; registerNodeDataInstance ( clazz ) ; log . debug ( "Registered {} as default NodeData instance." , DEFAULT_NODE_DATA_IMPL ) ; } catch ( Exception e ) { } } try { return ndImpl . newInstance ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "No NodeData implementation registered" ) ; } }
Creates instance of NodeData