if (mappedName != null && mappedName.trim().equals(""))
mappedName = null;
if (mappedName == null)
{
//
AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().getAnnotatedEjbReferences();
if(amds != null)
{
AnnotatedEJBReferenceMetaData amd = amds.get(encName);
if(amd == null && fieldName != null)
amd = amds.get(fieldName);
if(amd != null)
{
mappedName = amd.getMappedName();
if(mappedName == null)
mappedName = amd.getResolvedJndiName();