we usually do check the lucene version in a static block

```Java
static {
 assert Version.CURRENT.luceneVersion == org.apache.lucene.utli.Version.LUCENE_48 : "Remove this class in Lucene 4.9";
}

```