// search for <dependency identifierref="resourceIdentifier" >
for (Iterator<CPResource> itRes = rootNode.getResources().getResourceIterator(); itRes.hasNext();) {
CPResource res = itRes.next();
for (Iterator<CPDependency> itDep = res.getDependencyIterator(); itDep.hasNext();) {
CPDependency dep = itDep.next();
if (dep.getIdentifierRef().equals(resourceIdentifier)) return dep;
}
}
return null;
}