private JSONObject getAppResources(JSONObject app) {
JSONObject resources = new JSONObject();
if (app.has("applicationPath")) {
try {
String applicationPath = (String) app.get("applicationPath");
APPIOSApplication a = mgr.getApplicationStore().getApplication(applicationPath);
for (String key : a.getResources().keySet()) {
resources.put(key, "/wd/hub/resources/" + mgr.getCache().getKey(a, key));
}
} catch (JSONException ignored) {
}
}