{
xmlObject = request.getRequestXmlObject();
}
catch( XmlException e )
{
throw new DispatchException( "Error getting XmlObject for request: " + e );
}
String path = getMockOperation().getDispatchPath();
if( StringUtils.isNullOrEmpty( path ) )
throw new DispatchException( "Missing dispatch XPath expression" );
String[] values = XmlUtils.selectNodeValues( xmlObject, path );
for( String value : values )
{
WsdlMockResponse mockResponse = getMockOperation().getMockResponseByName( value );