boolean acess = field.isAccessible();
try {
securityService.doPrivilegedSetAccessible(field, true);
field.set(managedBeanInstance, getResourceReference(resourceRef));
} catch (Exception e) {
throw new WebBeansException("Unable to inject field" + field, e);
} finally {
securityService.doPrivilegedSetAccessible(field, acess);
}
}
currentClass = currentClass.getSuperclass();