protected function buildOutcomeDeclaration(DOMElement $data){

        $outcome = new OutcomeDeclaration($this->extractAttributes($data));
        $data = simplexml_import_dom($data);

        if(isset($data->defaultValue)){
            if(!is_null($data->defaultValue->value)){
                $outcome->setDefaultValue((string) $data->defaultValue->value);
            }
        }

        return $outcome;
    }