class DBBaselineManager extends DBManager<Baseline> implements BaselineManager {

    @Override
    public final FilteredRecordsList<Baseline> getOrderedBaselineList(
            final String columnToOrder, final boolean ascending,
            final int firstResult, final int maxResults, final String search,
            final Map<String, Boolean> searchableColumns)
            throws BaselineManagerException {

        if (columnToOrder == null) {
            LOGGER.debug("null object argument");
            throw new NullPointerException("object");
        }

        // check that the baseline is not archived
        CriteriaModifier modifier = new CriteriaModifier() {
            @Override
            public void modify(final Criteria criteria) {
                criteria.add(Restrictions.isNull("archivedTime"));
            }
        };

        final FilteredRecordsList<Baseline> baselines;
        try {
            LOGGER.debug("querying db for baselines");
            baselines = super.getOrderedList(Baseline.class, columnToOrder, ascending, firstResult,
                    maxResults, search, searchableColumns, modifier);
        } catch (DBManagerException e) {
            throw new BaselineManagerException(e);
        }
        return baselines;
    }

    public  DBBaselineManager(final SessionFactory sessionFactory);

}