// get all resources from remote gateways
for (Entry<String, GatewayLocation> gateway: mGatewayNamesToLocations.entrySet())
{
try
{
Gateway gtw = new GatewayClientREST(
new URI(gateway.getValue().getAddress()));
for (String dataSource: gtw.getGatewayAllDataResources())
{
addDataSourceAndGateway(dataSource, gateway.getKey());
}
}
catch (Throwable e)