httpServletResponse.setContentType("application/json");
OutputStream stream = httpServletResponse.getOutputStream();
stream.write('[');
writeToOutputStream(stream, new MarshalledMessage() {
public String getSubject() {
return "ClientBusErrors";
}
public Object getMessage() {
StringBuilder b = new StringBuilder("{ErrorMessage:\"").append(CONFIG_PROBLEM_TEXT).append("\",AdditionalDetails:\"");
return b.append("\"}").toString();
}
});
stream.write(',');
writeToOutputStream(stream, new MarshalledMessage() {
public String getSubject() {
return "ClientBus";
}
public Object getMessage() {