protected function addOuterTags($inputXml)
    {
        // start xml with encoding tag
        $finalXml = $this->xmlStart();
        
        // open script tag
        $finalXml .= "\n<script>";
        
        // include override of submit command if specified
        if ($this->getOption('sbmjobCommand')) {
            $sbmJobCommand = $this->getOption('sbmjobCommand');
            $finalXml .= "\n<sbmjob>{$sbmJobCommand}</sbmjob>";
        }
        
        // inner "meat" of the XML
        $finalXml .= "\n$inputXml";
        
        // close script tag
        $finalXml .= "\n</script>";
        
        return $finalXml; 
    }