* {@link QueueRepository}s.
* @return A new implementation of a {@link NodeRepository}.
*/
public static NodeRepository getNodeRepositoryFromFactory(String nodeRepositoryFactory) {
Class clazz = null;
NodeRepositoryFactory factory = null;
try {
clazz = Class.forName(nodeRepositoryFactory);
factory = (NodeRepositoryFactory) clazz.newInstance();
return factory.createNodeRepository();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading node repository factory class "
+ nodeRepositoryFactory + " Message: " + e.getMessage());