public function getOutput($connections)
{
if (parent::getFormat() == "xml") {
return new XMLConnectionOutput($connections);
} else {
if (parent::getFormat() == "json") {
return new JSONConnectionOutput($connections);
} else {
throw new Exception("No outputformat specified");
}
}
}