Get the script (source code) of a JobDefinition

The source code (script) of a JobDefinition is not directly accessible through the JobDefinition object, but can be read with the following code:

        JobDefinition jd = jcsSession.getJobDefinitionByName("MyTest");
        Script s = jcsSession.getScriptByJobDefinition(jd);
        jcsOut.println(s.getSource());