/** . */
private final Map<Class<?>, ObjectFactory<?>> factories;
public SerializationContext(TypeDomain typeDomain) {
HashMap<Class<?>, ObjectFactory<?>> factories = new HashMap<Class<?>, ObjectFactory<?>>();
factories.put(Object.class, new DefaultObjectFactory());
//
this.typeDomain = typeDomain;
this.factories = factories;
}