List<JsParameter> gwtOnLoadParams = gwtOnLoad.getParameters();
JsName errFn = fnScope.declareName("errFn");
JsName modName = fnScope.declareName("modName");
JsName modBase = fnScope.declareName("modBase");
JsName softPermutationId = fnScope.declareName("softPermutationId");
gwtOnLoadParams.add(new JsParameter(sourceInfo, errFn));
gwtOnLoadParams.add(new JsParameter(sourceInfo, modName));
gwtOnLoadParams.add(new JsParameter(sourceInfo, modBase));
gwtOnLoadParams.add(new JsParameter(sourceInfo, softPermutationId));
// if (previousGwtOnLoad) {
// previousGwtOnLoad();
// }
JsIf previousGwtOnLoadIf = new JsIf(sourceInfo);