@Override
public void preProcessWebXmlElement(WebApp webApp, MergeContext mergeContext) throws DeploymentException {
for (EjbLocalRef ejbLocalRef : webApp.getEjbLocalRef()) {
String ejbLocalRefName = ejbLocalRef.getEjbRefName();
mergeContext.setAttribute(createEjbLocalRefKey(ejbLocalRefName), new MergeItem(ejbLocalRef, null, ElementSource.WEB_XML));
if (ejbLocalRef.getInjectionTarget().size() > 0) {
mergeContext.setAttribute(createEjbLocalRefInjectTargetConfiguredInWebXMLKey(ejbLocalRefName), Boolean.TRUE);
}
for (InjectionTarget injectionTarget : ejbLocalRef.getInjectionTarget()) {
mergeContext.setAttribute(createEjbLocalRefInjectTargetKey(ejbLocalRefName, injectionTarget.getInjectionTargetClass(), injectionTarget.getInjectionTargetName()
), Boolean.TRUE);
}
}
}