// Currently encName has 'env/' prepended (see getEncName)
assert lookupName.startsWith("env/") : "encName used to start with 'env/'";
lookupName = lookupName.substring(4);
// EJBTHREE-1289: find a resolved jndi name
AnnotatedEJBReferencesMetaData amds = webDD.getJndiEnvironmentRefsGroup().getAnnotatedEjbReferences();
if(amds != null)
{
AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
if (amd == null && fieldName != null)
{
lookupName = fieldName;
amd = amds.get(lookupName);
}
if (amd != null)
{
mappedName = amd.getMappedName();
if (mappedName == null)