private void processClassAnnotations(final DBCollection dbColl, final MappedClass mc, final boolean background) {
//Ensure indexes from class annotation
final List<Annotation> indexes = mc.getAnnotations(Indexes.class);
if (indexes != null) {
for (final Annotation ann : indexes) {
final Indexes idx = (Indexes) ann;
if (idx != null && idx.value() != null && idx.value().length > 0) {
for (final Index index : idx.value()) {
final BasicDBObject fields = QueryImpl.parseFieldsString(index.value(),
mc.getClazz(),
mapper,
!index.disableValidation());
ensureIndex(dbColl, index.name(), fields, index.unique(), index.dropDups(),