*@param classLoader The deployment class loader
* @param deploymentReflectionIndex The reflection index
* @param applicationClasses @return The bindings for the environment entries
*/
protected List<BindingConfiguration> processDescriptorEntries(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ResourceInjectionTarget resourceInjectionTarget, final ComponentDescription componentDescription, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, final EEApplicationClasses applicationClasses) throws DeploymentUnitProcessingException {
final RemoteEnvironment remoteEnvironment = environment.getEnvironment();
final DeploymentClassIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.CLASS_INDEX);
List<BindingConfiguration> bindingDescriptions = new ArrayList<BindingConfiguration>();
EJBReferencesMetaData ejbRefs = remoteEnvironment.getEjbReferences();
if (ejbRefs != null) {
for (EJBReferenceMetaData ejbRef : ejbRefs) {
String name = ejbRef.getEjbRefName();
String ejbName = ejbRef.getLink();
String lookup = ejbRef.getLookupName() != null ? ejbRef.getLookupName() : ejbRef.getMappedName();