public Access checkAccess(String user, Object object) {
if (!(object instanceof MethodInvocation)) {
return Access.ABSTAINED;
}
MethodInvocation methodInvocation = (MethodInvocation) object;
Anonymous public1 = AnnotationUtils.findAnnotation(methodInvocation.getMethod(), Anonymous.class);
if (public1 != null) {
return Access.GRANTED;
}
Collection<ServicePermission> permissions;
try {