ResultConfig resultConfig = new ResultConfig();
resultConfig.addParam("actionName", "someActionName");
resultConfig.addParam("namespace", "someNamespace");
resultConfig.addParam("encode", "true");
resultConfig.addParam("parse", "true");
resultConfig.addParam("location", "someLocation");
resultConfig.addParam("prependServletContext", "true");
resultConfig.addParam("method", "someMethod");
resultConfig.addParam("param1", "value 1");
resultConfig.addParam("param2", "value 2");
resultConfig.addParam("param3", "value 3");