@Override
        @SuppressWarnings("unchecked")
        protected Map<String, ObjectIndex> create() {
          State globals = getGlobals();
          Object definitions = globals != null ? globals.get(GLOBAL_INDEXES_FIELD) : null;

          return ObjectIndex.Static.convertDefinitionsToInstances(
              DatabaseEnvironment.this,
              definitions instanceof List ? (List<Map<String, Object>>) definitions : null);
        }
 @Override
 public void setIndexes(List<ObjectIndex> indexes) {
   getGlobals()
       .put(GLOBAL_INDEXES_FIELD, ObjectIndex.Static.convertInstancesToDefinitions(indexes));
   indexesCache.reset();
 }