* @param condition the error condition
*/
private void error(BoshRequest br, String condition) {
requestsWindow.put(br.getRid(), br);
BoshRequest req = requestsWindow.remove(requestsWindow.firstKey());
Stanza body = boshHandler.getTerminateResponse();
body = boshHandler.addAttribute(body, "condition", condition);
BoshResponse boshResponse = getBoshResponse(body, null);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("BOSH writing response: {}", new String(boshResponse.getContent()));
}