public Object getValue(Object object) {
try {
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
try {
return AccessController.doPrivileged(new PrivilegedGetValueFromField(field, object));
} catch (PrivilegedActionException exception) {
throw DescriptorException.errorUsingPrimaryKey(object, getDescriptor(), exception.getException()); }
} else {
return oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getValueFromField(field, object);
}