private Artifact getSharedLibDependency(Dependencies dependencies) {
Dependencies depType = getDependencies(false);
List dependenciesList = depType.getDependency();
Iterator i = dependenciesList.iterator();
while(i.hasNext()) {
Artifact artifact = (Artifact) i.next();
if("org.apache.geronimo.configs".equals(artifact.getGroupId()) && "sharedlib".equals(artifact.getArtifactId()) && "car".equals(artifact.getType())) {
return artifact;
}
}
return null;
}