class SearchFilter implements Filter {

    @Override
    public boolean filter(Object datamodelObj) {
        if(datamodelObj instanceof DbSearch){
            return includeModules.equals(((DbSearch)datamodelObj).getModules() == null || ((DbSearch)datamodelObj).getModules().isEmpty())
                    && includeArtifacts.equals(((DbSearch)datamodelObj).getArtifacts() == null || ((DbSearch) datamodelObj).getArtifacts().isEmpty());
        }
        return false;
    }

    public  SearchFilter(final Boolean modules, final Boolean artifacts);

}