class VersionFilter implements Filter {

    @Override
    public boolean filter(final Object datamodelObj) {
        if(datamodelObj instanceof DbModule){
            return version.equals( ((DbModule)datamodelObj).getVersion());
        }
        if(datamodelObj instanceof DbArtifact){
            return version.equals( ((DbArtifact)datamodelObj).getVersion());
        }

        return false;
    }

    public  VersionFilter(final String version);

}