def _extract_motm
      lambda {|response|
        # Scan for MOTM signature --uuid:*
        if response.raw =~ (/^(--[\w:-]+)--$/)
          # Get the last message, which is -2 because of the trailing --
          xml = response.raw.split($1)[-2].strip

          # Get rid of HTTP headers
          if xml =~ /\r\n\r\n[<]/
            xml = xml.split(/\r\n\r\n/)[-1]
          end
          
        else
          raise "Cannot parse MOTM"
        end
        }
    end
def _extract_motm
      lambda {|response|
        # Scan for MOTM signature --uuid:*
        if response.raw =~ (/^(--[\w:-]+)--$/)
          # Get the last message, which is -2 because of the trailing --
          xml = response.raw.split($1)[-2].strip

          # Get rid of HTTP headers
          if xml =~ /\r\n\r\n[<]/
            xml = xml.split(/\r\n\r\n/)[-1]
          end
          
        else
          raise "Cannot parse MOTM"
        end
        }
    end
This is proof-of-concept quality code.
 @todo Need to extract boundary and start markers from Content-Type header:
 Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:14b8db9f-a393-4786-be3f-f0f7b12e14a2"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml"
 @return [String]