public function toLegacyConfigString()
 {
     $settings = array();
     if ($this->hasTitle()) {
         $settings['Title'] = $this->getTitle();
     }
     // TODO: backendName?
     if ($this->backend) {
         $settings['Backend'] = $this->backend->getName();
     }
     $settings['Statetype'] = $this->usesSoftStates() ? 'soft' : 'hard';
     if (false) {
         $settings['SLA Hosts'] = implode(', ', array());
     }
     $conf = "### Business Process Config File ###\n#\n";
     foreach ($settings as $key => $value) {
         $conf .= sprintf("# %-9s : %s\n", $key, $value);
     }
     $conf .= "#\n###################################\n\n";
     $rendered = array();
     foreach ($this->getChildren() as $child) {
         $conf .= $child->toLegacyConfigString($rendered);
         $rendered[(string) $child] = true;
     }
     foreach ($this->getUnboundNodes() as $node) {
         $conf .= $node->toLegacyConfigString($rendered);
         $rendered[(string) $node] = true;
     }
     return $conf . "\n";
 }