public static void nodeCreated(final Principal user, final NodeInterface node) { TransactionCommand command = currentCommand.get(); if (command != null) { ModificationQueue modificationQueue = command.getModificationQueue(); if (modificationQueue != null) { modificationQueue.create(user, node); } else { logger.log(Level.SEVERE, "Got empty changeSet from command!"); } } else { logger.log(Level.SEVERE, "Node created while outside of transaction!"); } }