code: @Override
      public Object beforeGettingConnection(Subject subject,
                                            ConnectionRequestInfo reqInfo) throws ResourceException {
  
          final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
  
          if (isTracingEnabled && tc.isEntryEnabled()) {
              Tr.entry(this, tc, "beforeGettingConnection");
          }
  
          Object retObject = null;
  
          if (isTracingEnabled && tc.isEntryEnabled()) {
              Tr.exit(this, tc, "beforeGettingConnection");
          }
  
          return retObject;
  
      }
docs: The beforeCreateManageConnection() method is used to allow
  special security processing to be performed prior to calling
  a resource adapter to get a connection.
  
  @param Subject subject
  @param ConnectionRequestInfo reqInfo
  @return Object if non-null, the user identity defined by the
  Subject was pushed to thread. The Object in
  this case needs to be passed as input to
  afterGettingConnection method processing and
  will be used to restore the thread identity
  back to what it was.
  @exception ResourceException