code: public void setPermissions(IConnection conn, Collection<String> permissions) {
          if (permissions == null) {
              conn.removeAttribute(PERMISSIONS);
          } else {
              conn.setAttribute(PERMISSIONS, permissions);
          }
      }
docs: {@inheritDoc}