res.setResponseCode("200"); // $NON-NLS-1$
res.setResponseMessage("OK"); // $NON-NLS-1$
res.setSuccessful(true);
res.setDataType(SampleResult.TEXT); // Default (can be overridden by the script)
res.sampleStart();
try {
initManager(mgr);
mgr.declareBean("SampleResult", res, res.getClass()); // $NON-NLS-1$
// These are not useful yet, as have not found how to get updated values back