// Use the mappedName as the string value
String s = ref.mappedName().trim();
try
{
Object value = ValueConvertor.convertValue(type, s);
container.getEncInjectors().put(encName, new ValueEncInjector(encName, value, "@Resource"));
injectors.put(accObj, new JndiPropertyInjector(property, encName, container.getEnc()));
}
catch(Throwable t)
{
throw new RuntimeException("Failed to convert: "+ref.mappedName()+" to type:"+type, t);