cacheElement = null;
}
}//TOTEST
if (null == cacheElement) {
// 3) Check key is indexed
cacheCollection.ensureIndex(new BasicDBObject("key", 1));
// 4) Check key is Text or single value BSON (and what is that value?)
String keyField = null;
if (null == customJob.outputKey) {
throw new RuntimeException("Invalid key: " + customJob.outputKey);