code: public String getDomains() {
  		StringWriter sw = new StringWriter();
  		JsonGenerator generator;
  		if (this.prettyFormat != Format.NONE) {
  			JsonGeneratorFactory gf = JSONWriter.getPrettyGeneratorFactory();
  			generator = gf.createGenerator(sw);
  		} else
  			generator = Json.createGenerator(sw);
  		
  		generator.writeStartArray();
  		List<String> doms = DomainInformation.availableDomains(dbAccess);
  		for (String dom : doms) {
  			generator.write(dom);
  		}
  		generator.writeEnd();
  
  		generator.flush();
  		return sw.toString();
  	}
docs: Answer a JSON representation of the available domains in the database
  @return