private void processClassAnnotations(final MappedClass mc, final boolean background) {
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(mc.getClazz(), index.name(), fields, index.unique(), index.dropDups(),
index.background() ? index.background() : background, index.sparse(), index.expireAfterSeconds());
}
}
}
}
}