private PermissionRule getPermissionRuleFor(Object requestedObject) {
return permissionRules.get( requestedObject.getClass() );
}
private Object convertFor(Object requestedObject) {
PermissionRuleObjectConverter permissionRuleObjectConverter = permissionRuleObjectConverters.get( requestedObject.getClass() );
return permissionRuleObjectConverter == null ? requestedObject : permissionRuleObjectConverter.convert( requestedObject );
}