code: public static void setHandlerData(Object data)
     {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null)
           sm.checkPermission(setPolicy);
        handlerDataLocal.set(data);
     }
docs: <p>
  Authorization protected method that may be used to associate a thread-scoped handler data object with the
  PolicyContext. The handler data object will be made available to handlers, where it can serve to supply or bind
  the handler to invocation scoped state within the container.
  </p>
  
  @param data
  - a container-specific object that will be associated with the calling thread and passed to any handler
  activated by a {@code Policy} provider (on the thread). The value null is a legitimate value for this
  parameter, and is the value that will be used in the activation of handlers if the {@code
  setHandlerData} has not been called on the thread.
  @throws SecurityException
  - if the calling {@code AccessControlContext} is not authorized by the container to call this method.