// waiting for results with timeout
// *****************************************************
case 1:
long timeout = 100 * 1000;
mGatewayProcess.waitForResults(timeout);
if (hasErrors(mGatewayProcess.getErrors()))
{
return;
}
for (Result r : mGatewayProcess.getResults().values())