List tempClassMappings = new ArrayList(classMappings);
try {
CompassMapping mapping = (CompassMapping) new FieldInvoker(CompassConfiguration.class, "mapping").prepare().get(compassConfiguration);
AliasMapping[] mappings = mapping.getMappings();
for (int i = 0; i < mappings.length; i++) {
AliasMapping am = mappings[i];
if (am instanceof ClassMapping) {
ClassMapping cm = (ClassMapping) am;
CompassClassMapping dummyMapping = new CompassClassMapping();
dummyMapping.setAlias(cm.getAlias());
dummyMapping.setMappedClass(cm.getClazz());