protected function parseComplexStruct($typeDef)
{
$typeDefCount = count($typeDef);
if ($typeDefCount > 3) {
for ($i = 2; $i < $typeDefCount; $i += 2) {
$structParamType = str_replace(self::ANY_XML_DECLARATION, self::ANY_XML_TYPE, $typeDef[$i]);
$structParamName = $typeDef[$i + 1];
$this->getGenerator()->getStructs()->addStructWithAttribute($this->getGenerator(), $typeDef[1], $structParamName, $structParamType);
}
} else {
$this->getGenerator()->getStructs()->addStruct($this->getGenerator(), $typeDef[1]);
}
}