METAMODEL-77: Made build also work on JDK6 - with older ElasticSearch
version.