code: @FFDCIgnore(PrivilegedActionException.class)
      private Object createResourceWithFilter(final String filter, final ResourceInfo resourceRefInfo) throws Exception {
          try {
              return AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
                  @Override
                  public Object run() throws Exception {
                      return createResourceWithFilterPrivileged(filter, resourceRefInfo);
                  }
              });
          } catch (PrivilegedActionException paex) {
              Throwable cause = paex.getCause();
              if (cause instanceof Exception) {
                  throw (Exception) cause;
              }
              throw new Error(cause);
          }
      }
docs: Try to obtain an object instance by creating a resource using a
  ResourceFactory with the specified filter.