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;
}

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 ; }
check , whether the response contains error headers . todo : is there a better solution ?
