code: @SuppressWarnings({ "unchecked" })
     private AttributeList setAttributes(final String name, final HashMap attributes) throws PrivilegedActionException
     {
        return AccessController.doPrivileged(new PrivilegedExceptionAction<AttributeList>()
        {
           public AttributeList run() throws Exception
           {
              return Server.setAttributes(name, attributes);
           }
        });
     }
docs: Set attributes on a MBean
  @param name The name of the bean
  @param attributes The attributes
  @return The updated attributes list
  @exception PrivilegedExceptionAction Thrown if the operation cannot be performed