code: @SuppressWarnings("unchecked")
      public Collection<String> getPermissions(IConnection conn) {
          Collection<String> result = (Collection<String>) conn.getAttribute(PERMISSIONS);
          if (result == null) {
              result = Collections.emptySet();
          }
          return result;
      }
docs: {@inheritDoc}