*/
private void populateVertexDependencies(Vertex vertex) {
Assert.notNull(vertex, "vertex cannot be null");
final ModuleDefinition moduleDefinition = vertex.getModuleDefinition();
final List<String> dependentModuleNames = moduleDefinition.getDependentModuleNames();
for (String dependent : dependentModuleNames) {
final Vertex dependentVertex = vertexMap.get(dependent);
if (dependentVertex == null) {
throw new InvalidStateException("Unable to dependency named named '" + dependent
+ "' for module definition '" + moduleDefinition.getName() + "'");
} else {
//register the vertex dependency
populateVertexDependency(vertex, dependentVertex);
}