Assert.notNull(parent, "parent cannot be null");
Assert.notNull(moduleDefinition, "moduleDefinition cannot be null");
logger.info("With parent '" + parent + "', adding module: " + moduleDefinition);
final Vertex parentVertex = getRequiredVertex(parent);
ModuleDefinition parentDefinition = parentVertex.getModuleDefinition();
parentDefinition.addChildModuleDefinition(moduleDefinition);
moduleDefinition.setParentDefinition(parentDefinition);
//now recursively add definitions
List<Vertex> addedVertices = new ArrayList<Vertex>();