return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Organization not found", null);
}
if (this.org == null || "".equals(this.org)) {
JSONObject org = orgs.getJSONObject(0);
target.setOrg(new Org().setCFJSON(org));
} else {
for (int i = 0; i < orgs.length(); i++) {
JSONObject orgJSON = orgs.getJSONObject(i);
if ((!isGuid && org.equals(orgJSON.getJSONObject("entity").getString("name"))) || (isGuid && org.equals(orgJSON.getJSONObject("metadata").getString("guid")))) {
target.setOrg(new Org().setCFJSON(orgJSON));
break;
}
}
}