code: private void readLinks2Status()
          throws CacheReloadException
      {
          Connection con = null;
          try {
              final List<Long> values = new ArrayList<>();
              con = Context.getConnection();
              PreparedStatement stmt = null;
              try {
                  stmt = con.prepareStatement(AccessSet.SQL_SET2STATUS);
                  stmt.setObject(1, getId());
                  final ResultSet rs = stmt.executeQuery();
                  while (rs.next()) {
                      values.add(rs.getLong(1));
                  }
                  rs.close();
              } finally {
                  if (stmt != null) {
                      stmt.close();
                  }
              }
              con.commit();
              for (final Long statusId : values) {
                  final Status status = Status.get(statusId);
                  if (status == null) {
                      AccessSet.LOG.error("could not found status with id " + "'" + statusId + "'");
                  } else {
                      AccessSet.LOG.debug(
                                  "read link from AccessSet '{}' (id = {}, uuid = {}) to status '{}' (id = {})",
                                      getName(), getId(), getUUID(), status.getKey(), status.getId());
                      getStatuses().add(status);
                  }
              }
          } catch (final SQLException e) {
              throw new CacheReloadException("could not read roles", e);
          } catch (final EFapsException e) {
              throw new CacheReloadException("could not read roles", 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);
              }
          }
      }
docs: Read the related {@link org.efaps.admin.datamodel.Status}.
  @throws CacheReloadException on error