throw new ValidationException( getterName + " is defined twice in mapping xml for bean " + beanClass.getName() );
}
else {
getterNames.add( getterName );
}
ContainsMethod cmAction = ContainsMethod.action( beanClass, getterName );
boolean containsMethod;
if ( System.getSecurityManager() != null ) {
containsMethod = AccessController.doPrivileged( cmAction );
}
else {
containsMethod = cmAction.run();
}
if ( !containsMethod ) {
throw new ValidationException( beanClass.getName() + " does not contain the property " + getterName );
}
final Method method;