appResources = resolver.getApplicationResources(context);
} catch (NamingException e) {
throw new RuntimeException(e);
}
for (Iterator it = appResources.iterator(); it.hasNext();) {
ApplicationResource appResource = (ApplicationResource) it.next();
if (appResource.getDataSourceInfo() != null) {
scores[0] = Math.max(scores[0], appResource.getDataSourceInfo().getBusyScore());
scores[1] = Math.max(scores[1], appResource.getDataSourceInfo().getEstablishedScore());
}
}
return scores;
}