@After
 public void cleanup() throws InterruptedException {
   db.drop();
   db.close();
   db.shutdown();
   Locale.setDefault(currentLocale);
 }
 @Override
 public DocumentList get(ContentStore db, Map model, String key) {
   // document types are pluralized in model, so unpluralize
   try {
     String type = ModelExtractionUtils.unpluralizeDocumentType(key);
     return DocumentList.wrap(db.getAllContent(type).iterator());
   } catch (UnsupportedOperationException e) {
     List<ODocument> none = Collections.emptyList();
     return DocumentList.wrap(none.iterator());
   }
 }
 @After
 public void cleanup() throws InterruptedException {
   db.drop();
   db.close();
 }