* @param text can be null and gets then replaced with empty string.
*/
MessageController(UserRequest ureq, WindowControl control, int msgType, String title, String text) {
super(ureq, control);
if(msgType < 0 || msgType > VC_PAGES.length){
throw new AssertException("provided message type is undefined, type given:"+msgType);
}
// use tranlsation keys from default package
setTranslator(Util.createPackageTranslator(I18nManager.class, getLocale()));
//
msgVC = createVelocityContainer(VC_PAGES[msgType]);