case WebServiceRequest: {
RequestStructureMappingTreeConverter c = new RequestStructureMappingTreeConverter();
return c.convert((WebServiceRequestStructure) s, isTarget, callback);
}
case WebServiceResponse: {
ResponseStructureMappingTreeConverter c = new ResponseStructureMappingTreeConverter();
return c.convert((WebServiceResponseStructure) s, isTarget, callback);
}
case XML: {
XmlStructureMappingTreeConverter c = new XmlStructureMappingTreeConverter();
return c.convert((XmlStructure) s, isTarget, callback);
}
case JSON: {
JsonStructureMappingTreeConverter c = new JsonStructureMappingTreeConverter();
return c.convert((JsonStructure) s, isTarget, callback);
}
default:
throw new RuntimeException("Unexpected structure type: " + s.getStructureType());
}
}