class ApprovedFilter implements Filter {

    @Override
    public boolean filter(final Object datamodelObj) {
        if(datamodelObj instanceof DbLicense){
            return approved.equals( ((DbLicense)datamodelObj).isApproved());
        }

        return false;
    }

    public  ApprovedFilter(final Boolean approved);

}