private static void setupAnnotationTypesWithoutPayloads(DocumentmanagerConfig config, DocumentTypeManager manager) { for (DocumentmanagerConfig.Annotationtype annType : config.annotationtype()) { AnnotationType annotationType = new AnnotationType(annType.name(), annType.id()); manager.getAnnotationTypeRegistry().register(annotationType); } }