Use the following code as an example:
public void lookup(FormControl _formControl, str _filterStr)
{
XDSServices XDS = new XDSServices();
XDS.setXDSState(0); // Disable XDS
super(_formControl, _filterStr);
XDS.setXDSState(1); // Enable XDS
}