code: public List<CmsRewriteAlias> getRewriteAliases(CmsRequestContext requestContext, CmsRewriteAliasFilter filter)
      throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(requestContext);
          try {
              return m_driverManager.getRewriteAliases(dbc, filter);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_DB_OPERATION_0), e);
              return null; // will never be executed
          } finally {
              dbc.clear();
          }
  
      }
docs: Gets the rewrite aliases matching a given filter.<p>
  
  @param requestContext the current request context
  @param filter the filter used for selecting the rewrite aliases
  @return the rewrite aliases matching the given filter
  
  @throws CmsException if something goes wrong