@Override public void init(GatewayEngine engine, String id, String cfcPath, Map config) throws GatewayException { this.engine = engine; cfmlEngine = CFMLEngineFactory.getInstance(); caster = cfmlEngine.getCastUtil(); creator = cfmlEngine.getCreationUtil(); this.cfcPath = cfcPath; this.id = id; // config Object oPort = config.get("port"); port = caster.toIntValue(oPort, 1225); Object oWM = config.get("welcomeMessage"); String strWM = caster.toString(oWM, "").trim(); if (strWM.length() > 0) welcomeMessage = strWM; }