{
}
public String getCreateEventCode(Event evt,String evtVarName,ClientDocumentStfulImpl clientDoc)
{
ItsNatEventImpl userEvt = (ItsNatEventImpl)evt;
String name = ((ItsNatUserEvent)userEvt).getName();
StringBuilder code = new StringBuilder();
code.append("var evt = itsNatDoc.createUserEvent(\"" + name + "\");\n");
if (userEvt.hasExtraParams())
{
Map<String,Object> extraParams = userEvt.getExtraParamMap();
for(Map.Entry<String,Object> entry : extraParams.entrySet())
{
String nameParam = entry.getKey();
Object value = entry.getValue();
code.append( "evt.setExtraParam(\"" + nameParam + "\"," + javaToJS(value,true,clientDoc) + ");\n" );