Slighly altered (simplified) The MessageProcessorFactories.