question: private boolean isErrorResponse ( final SoapMessage msg ) { final Map < String , List < String > > headers = ( Map < String , List < String > > ) msg . get ( Message . PROTOCOL_HEADERS ) ; final List < String > strings = headers . get ( "X-Backside-Transport" ) ; for ( final String header : strings ) { final List < String > split = Arrays . asList ( header . split ( " " ) ) ; if ( split . contains ( "FAIL" ) ) { return true ; } } return false ; }
target:  Check, whether the response contains error headers. TODO: is there a better solution?