code: public static Group getWithJAASKey(final JAASSystem _jaasSystem,
                                         final String _jaasKey)
          throws EFapsException
      {
          long groupId = 0;
          Connection con = null;
          try {
              con = Context.getConnection();
  
              PreparedStatement stmt = null;
              try {
                  stmt = con.prepareStatement(Group.SQL_JAASKEY);
                  stmt.setObject(1, _jaasKey);
                  stmt.setObject(2, _jaasSystem.getId());
                  final ResultSet rs = stmt.executeQuery();
                  if (rs.next()) {
                      groupId = rs.getLong(1);
                  }
                  rs.close();
              } catch (final SQLException e) {
                  Group.LOG.error("search for group for JAAS system '" + _jaasSystem.getName() + "' "
                          + "with key '" + _jaasKey + "' is not possible", e);
                  throw new EFapsException(Group.class, "getWithJAASKey.SQLException", e,
                                           _jaasSystem.getName(), _jaasKey);
              } finally {
                  try {
                      stmt.close();
                      con.commit();
                  } catch (final SQLException e) {
                      Group.LOG.error("Statement could not be closed", e);
                  }
              }
          } finally {
              try {
                  if (con != null && !con.isClosed()) {
                      con.close();
                  }
              } catch (final SQLException e) {
                  throw new CacheReloadException("Cannot read a type for an attribute.", e);
              }
          }
          return Group.get(groupId);
      }
docs: Returns for given parameter <i>_jaasKey</i> the instance of class
  {@link Group}. The parameter <i>_jaasKey</i> is the name of the group
  used in the given JAAS system for the group.
  
  @param _jaasSystem   JAAS system for which the JAAS key is named
  @param _jaasKey      key in the foreign JAAS system for which the group
  is searched
  @return instance of class {@link Group}, or <code>null</code> if group
  is not found
  @throws EFapsException if group with JAAS key could not be fetched from
  eFaps
  @see #get(long)