private CodecFactory codecFactory = CodecFactory.Singleton.INSTANCE.get();
public static String getIndexName(Field field) {
log.debug("Check @Index annotation on field {} of class {}", field.getName(), field.getDeclaringClass().getCanonicalName());
String indexName = null;
Index index = field.getAnnotation(Index.class);
if (index != null) {
indexName = index.name();
}
return indexName;
}