JSONObject domainJSON = resources.getJSONObject(k);
Domain domain = new Domain();
domain.setCFJSON(domainJSON);
if (domainName == null || domainName.equals(domain.getDomainName())) {
domains.add(domain);
result.append("Domains", domain.toJSON());
}
}
if (domains.isEmpty())
return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Domain can not be found", null);