ResourceReferenceMetaData ref = new ResourceReferenceMetaData();
String name = annotation.name();
if(name.length() == 0)
name = getName(element);
ref.setResourceRefName(name);
AuthenticationType authType = annotation.authenticationType();
ResourceAuthorityType resAuthType = ResourceAuthorityType.Container;
if(authType == AuthenticationType.APPLICATION)
resAuthType = ResourceAuthorityType.Application;
ref.setResAuth(resAuthType);
if(annotation.mappedName().length() > 0)