this.restrictionValidator = restrictionValidator;
}
public RestrictionResult checkRestriction(Method method, Profile profile) {
RestrictionResult restrictionResult;
RestrictionsWrapper resourceRestrictions = this.getResourceRestriction(method.getDeclaringClass());
RestrictionsWrapper methodRestrictions = this.getMethodRestrictions(method);
restrictionResult = this.restrictionValidator.validateRestrictions(resourceRestrictions, methodRestrictions, profile);
return restrictionResult;
}