* @return javascript to initialize cometd on client side
*/
private String _renderInitScript()
{
final Map<String, Object> params = new HashMap<String, Object>();
final RuntimeConfigurationType configurationType = Application.get().getConfigurationType();
if (configurationType.equals(RuntimeConfigurationType.DEVELOPMENT))
params.put("logLevel", "info");
else
params.put("logLevel", "error");
params.put("cometdServletPath", getCometdServletPath());
return TEMPLATE_INIT.asString(params);