Adding CustomMessageFactory support per application context