RemoteRefDConfigBean ejbRef = ejbRefs[i];
if (ejbRef.getRefName().equals(name)) {
return ejbRef;
}
}
throw new ConfigurationException("no such ejb-ref-name" + name);
} else if (xpath.equals(xpaths[1])) {
String name = ddBean.getText(namePaths[1])[0];
for (int i = 0; i < ejbLocalRefs.length; i++) {
LocalRefDConfigBean ejbLocalRef = ejbLocalRefs[i];
if (ejbLocalRef.getRefName().equals(name)) {
return ejbLocalRef;
}
}
throw new ConfigurationException("no such ejb-ref-name" + name);
} else if (xpath.equals(xpaths[2])) {
String name = ddBean.getText(namePaths[2])[0];
for (int i = 0; i < resourceEnvRefs.length; i++) {
LocalRefDConfigBean resourceEnvRef = resourceEnvRefs[i];
if (resourceEnvRef.getRefName().equals(name)) {
return resourceEnvRef;
}
}
throw new ConfigurationException("no such ejb-ref-name" + name);
} else if (xpath.equals(xpaths[3])) {
String name = ddBean.getText(namePaths[3])[0];
for (int i = 0; i < resourceRefs.length; i++) {
LocalRefDConfigBean resourceRef = resourceRefs[i];
if (resourceRef.getRefName().equals(name)) {
return resourceRef;
}
}
throw new ConfigurationException("no such res-ref-name" + name);
} else {
throw new ConfigurationException("Unrecognized XPath: " + ddBean.getXpath());
}
}