if (autoTS) {
ClassFile classFile = ctClass.getClassFile();
ConstPool cp = classFile.getConstPool();
AnnotationsAttribute attribute = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag);
Annotation indexAnnotation = new Annotation(cp, ClassPool.getDefault().get("com.google.code.morphia.annotations.Indexed"));
EnumMemberValue val = new EnumMemberValue(cp);
val.setType(IndexDirection.class.getName());
val.setValue(IndexDirection.DESC.name());
indexAnnotation.addMemberValue("value", val);
attribute.addAnnotation(indexAnnotation);
Logger.trace("create timestamp fields automatically");
CtField createdField = new CtField(CtClass.longType, "_created", ctClass);