public function generateMappings($struct)
{
$maps = array();
foreach ($struct['maps'] as $input => $output) {
$m = new RemapValue();
$m->attributes = array('input' => $input, 'output' => $output);
$maps[] = $m;
}
$remap = new XpathRemap();
$remap->xpath = $struct['xpath'];
$remap->values = $maps;
return $remap;
}