protected function SettlementResponseSuccess($sResponse)
    {
        $bSettlementResponseSuccess = true;
        $sRefNo = $this->GetRefNoParameter(false);
        $oXML = simplexml_load_string($sResponse);
        if (isset($oXML->body->transaction->response)) {
            TTools::WriteLogEntrySimple('Payment DataTrans: Erfoglreiche XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo, 3, __FILE__, __LINE__);
        } else {
            if (isset($oXML->body->transaction->error)) {
                $sErrorCode = '';
                $sErrorMessage = '';
                if (isset($oXML->body->transaction->error->errorCode)) {
                    $sErrorCode = strval($oXML->body->transaction->error->errorCode);
                }
                if (isset($oXML->body->transaction->error->errorDetail)) {
                    $sErrorMessage = strval($oXML->body->transaction->error->errorDetail);
                }
                if (isset($oXML->body->transaction->error->errorMessage)) {
                    $sErrorMessage .= strval($oXML->body->transaction->error->errorMessage);
                }
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.'. CODE('.$sErrorCode.') MESSAGE('.$sErrorMessage.')'.' response: '.$sResponse, 1, __FILE__, __LINE__);
            } else {
                TTools::WriteLogEntrySimple('Payment DataTrans: Fehlerhafte XML Settlement Response for transaction'.$this->sTransactionId.'and reference number '.$sRefNo.' response: '.$sResponse, 1, __FILE__, __LINE__);
            }
            $bSettlementResponseSuccess = false;
        }

        return $bSettlementResponseSuccess;
    }