// create an artifact for each dependency and add to the root artifact
Artifact.Dependency dep = new Artifact.Dependency();
dep.setServerRole(readAttribute(depElement, Artifact.SERVER_ROLE));
dep.setName(readAttribute(depElement, Artifact.ARTIFACT));
dep.setVersion(readAttribute(depElement, Artifact.VERSION));
artifact.addDependency(dep);
}
// read the subArtifacts
OMElement subArtifactsElement = artifactEle
.getFirstChildWithName(new QName(Artifact.SUB_ARTIFACTS));