demo getAvailability method inData parameter by reference fix.