private void addEnum(Class clazz) {
            Mapping<?, ?> mapping;
            if (clazz.isAnnotationPresent(DefEnumAtoms.class)) {
                mapping = new AtomEnumMapping(clazz);
            } else if (clazz.isAnnotationPresent(DefEnumConstants.class)) {
                mapping = new ConstantEnumMapping(clazz);
            } else {
                return;
            }
            addInputMapping(clazz, (InputMapping<?, ?>) mapping);
            addOutputMapping(clazz, (OutputMapping<?, ?>) mapping);
        }