private void setupQualifiers(EntityRegistry registry) {
//        for (Field f : qualifierRegistry.getDeclaredFields()) {
//            FieldId fann = f.getAnnotation(FieldId.class);
//            if (fann == null) {
//                continue;
//            }
//            Object key;
//            try {
//                key = f.get(TKey.class);
//            } catch (IllegalAccessException | IllegalArgumentException ex) {
//                key = null;
//            }
//            if (key == null || (key instanceof TKey)) {
//                continue;
//            }
//
//            Class<? extends Enum<?>> qualifier;
//            try {
//                qualifier = (Class<? extends Enum<?>>) f.get(Enum.class);
//            } catch (IllegalAccessException | IllegalArgumentException e) {
//                throw new RuntimeException("Field '" + f + "' cannot be accessed!", e);
//// continue;
//            }
//
//            attributeNames.put(qualifier.getSimpleName(), qualifier);
//        }

        Set<Class<? extends Enum<?>>> qualifiers = registry.getAvailableQualifiers();
        for (Class<? extends Enum<?>> qualifier : qualifiers) {
            attributeNames.put(qualifier.getSimpleName(), qualifier);
        }
    }