}
private RestrictionsWrapper getMethodRestrictions(Method method) {
List<Restriction> restrictions = new ArrayList<Restriction>();
if (method.isAnnotationPresent(LoggedIn.class)){
Restriction loggedInRestriction = new LoggedInRestriction();
restrictions.add(loggedInRestriction);
}
if (method.isAnnotationPresent(AccessLevel.class)){
AccessLevel accessLevel = method.getAnnotation(AccessLevel.class);
AccessLevelRestriction accessLevelRestriction = new AccessLevelRestriction();