// mappedName can be null, because an annotation has not been augmented with resolvedJndiName
if (mappedName == null)
{
//
AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().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)