for (Class c : mediatorSerializers) {
try {
MediatorSerializer ser = (MediatorSerializer) c.newInstance();
serializerMap.put(ser.getMediatorClassName(), ser);
} catch (Exception e) {
throw new SynapseException("Error instantiating " + c.getName(), e);
}
}
// now iterate through the available pluggable mediator factories
registerExtensions();
}