Map mapDelegateAEs = aeDescription.getDelegateAnalysisEngineSpecifiers(aResourceManager);
List<XMLizable> list = getDelegates().getDelegates();
for (XMLizable xmlizable : list) {
if (xmlizable instanceof AEDeploymentMetaData) {
AEDeploymentMetaData meta = (AEDeploymentMetaData) xmlizable;
if (mapDelegateAEs.containsKey(meta.getKey())) {
// Recursive
// Trace.err(4, "Match2: " + meta.getKey());
ResourceSpecifier rs = (ResourceSpecifier) mapDelegateAEs.get(meta.getKey());
meta.setResourceSpecifier(rs, aResourceManager, recursive);
} else {
// Trace.err("NOT match: " + meta.getKey());
throw new DDEInvalidXMLException(DDEInvalidXMLException.DELEGATE_KEY_NOT_FOUND, new
Object[] {meta.getKey(), aeDescription.getSourceUrlString() });
}
} else if (xmlizable instanceof RemoteAEDeploymentMetaData) {
RemoteAEDeploymentMetaData meta = (RemoteAEDeploymentMetaData) xmlizable;
if (mapDelegateAEs.containsKey(meta.getKey())) {
// Trace.err(4, "match: " + meta.getKey());
ResourceSpecifier rs = (ResourceSpecifier) mapDelegateAEs.get(meta.getKey());
meta.setResourceSpecifier(rs, aResourceManager, recursive);
} else {
Trace.err("NOT Match: " + meta.getKey());
throw new DDEInvalidXMLException(DDEInvalidXMLException.DELEGATE_KEY_NOT_FOUND, new
Object[] {meta.getKey(), aeDescription.getSourceUrlString() });
}
}
} // for
}