/** * If not already created, a new <code>module</code> element will be created and returned. * Otherwise, the first existing <code>module</code> element will be returned. * @return the instance defined for the element <code>module</code> */ public ModuleDependencyType<DependenciesType<T>> getOrCreateModule() { List<Node> nodeList = childNode.get("module"); if (nodeList != null && nodeList.size() > 0) { return new ModuleDependencyTypeImpl<DependenciesType<T>>(this, "module", childNode, nodeList.get(0)); } return createModule(); }