protected function getModel(Tag $tag, $type = '')
    {
        switch ($tag->getName()) {
            case WsdlDocument::TAG_OPERATION:
                $model = $this->getMethodByName($tag->getAttributeName());
                break;
            default:
                if (empty($type)) {
                    $model = $this->getStructByName($tag->getAttributeName());
                } else {
                    $model = $this->getStructByNameAndType($tag->getAttributeName(), $type);
                }
                break;
        }
        return $model;
    }