final Map<Class<?>, Class<?>> aliasToMarshaller = new HashMap<Class<?>, Class<?>>();
for (Class<?> mappedClass : exposedClasses) {
if (mappedClass.isSynthetic()) continue;
Portable portable = mappedClass.getAnnotation(Portable.class);
if (portable != null && !portable.aliasOf().equals(Object.class)) {
aliasToMarshaller.put(mappedClass, portable.aliasOf());
}
else if (!hasDefinition(mappedClass)) {
MappingDefinition def = DefaultJavaDefinitionMapper.map(JavaReflectionClass.newUncachedInstance(mappedClass),
this);
def.setMarshallerInstance(new DefaultDefinitionMarshaller(def));