if (domMethod == null) {
Class[] argumentTypes = new Class[1];
argumentTypes[0] = Element.class;
try {
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
domMethod = AccessController.doPrivileged(new PrivilegedGetMethod(record.getClass(), "setDom", argumentTypes, false));
}else{
domMethod = PrivilegedAccessHelper.getMethod(record.getClass(), "setDom", argumentTypes, false);
}
} catch (Exception notFound) {
try {
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
domMethod = AccessController.doPrivileged(new PrivilegedGetMethod(record.getClass(), "setDOM", argumentTypes, false));
}else{
domMethod = PrivilegedAccessHelper.getMethod(record.getClass(), "setDOM", argumentTypes, false);
}
} catch (Exception cantFind) {
throw new EISException(cantFind);