code: public boolean hasPermission(IConnection conn, String permissionName) {
          final Collection<String> permissions = getPermissions(conn);
          return permissions.contains(permissionName);
      }
docs: {@inheritDoc}