class HasLicenseFilter implements Filter {

    @Override
    public boolean filter(final Object datamodelObj) {
        if(datamodelObj instanceof DbArtifact){
            return hasLicense !=(((DbArtifact)datamodelObj).getLicenses().isEmpty());
        }

        return false;
    }

    public  HasLicenseFilter(final Boolean hasLicense);

}