code: public static PermissionSet getPermissionSet(final Instance _instance,
                                                   final boolean _evaluate)
          throws EFapsException
      {
          Evaluation.LOG.debug("Retrieving PermissionSet for {}", _instance);
          final Key accessKey = Key.get4Instance(_instance);
          final PermissionSet ret;
          if (AccessCache.getPermissionCache().containsKey(accessKey)) {
              ret = AccessCache.getPermissionCache().get(accessKey);
          } else if (_evaluate) {
              ret = new PermissionSet().setPersonId(accessKey.getPersonId()).setCompanyId(accessKey.getCompanyId())
                              .setTypeId(accessKey.getTypeId());
              Evaluation.eval(ret);
              AccessCache.getPermissionCache().put(accessKey, ret);
          } else {
              ret = null;
          }
          Evaluation.LOG.debug("Retrieved PermissionSet {}", ret);
          return ret;
      }
docs: Gets the PermissionSet.
  
  @param _instance the instance
  @param _evaluate the evaluate
  @return the PermissionSet
  @throws EFapsException on error