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