/**
  * Get the <code>Secured</code> attributes for a given target class.
  *
  * @param target The target method
  * @return Collection of <code>SecurityConfig</code>
  * @see Attributes#getAttributes
  */
 public Collection getAttributes(Class target) {
   Set<String> attributes = new HashSet<String>();
   for (Annotation annotation : target.getAnnotations()) {
     // check for Secured annotations
     if (annotation instanceof Authorized) {
       Authorized attr = (Authorized) annotation;
       for (String privilege : attr.value()) {
         attributes.add(privilege);
       }
       break;
     }
   }
   return attributes;
 }