// put all custom serializers in the serializer registry
//
Collection serializerDefinitions = dd.getSerializerDefinitions();
Iterator i = serializerDefinitions.iterator();
SerializerRegistry registry = SerializerRegistry.getInstance();
while (i.hasNext()) {
SerializerDefinition next = (SerializerDefinition) i.next();
Serializer ser = next.create();
Class type = ser.getSerializableType();
Class arrayType = ReflectUtils.getArrayClassFromClass(type);
Serializer arraySer = new ArraySerializer(arrayType, ser);
registry.registerSerializer(type, ser);
registry.registerSerializer(arrayType, arraySer);
}
//
// check for any specified router - this may be used
// as a delegate when trying to resolve a reference