apiResponse.setErrorText(se.getDescription());
apiResponse.setResponseName(responseName);
String responseText = ApiResponseSerializer.toSerializedString(apiResponse, responseType);</BUG>
writeResponse(response, responseText, se.getErrorCode(), responseType, se.getDescription());
<BUG>sb.append(" " + se.getErrorCode() + " " + responseText.length());

} catch (Exception e) {
s_logger.error("IO Exception responding to http request", e);
}</BUG>
} catch(RuntimeException e) {

UserContext.registerContext(_systemUser.getId(), _systemAccount, null, true);
sb.insert(0,"(userId="+User.UID_SYSTEM+ " accountId="+Account.ACCOUNT_ID_SYSTEM+ " sessionId="+null+ ") " );
String responseText = handleRequest(parameterMap, true, responseType, sb);
sb.append(" 200 " + ((responseText == null) ? 0 : responseText.length()));
writeResponse(response, responseText, HttpStatus.SC_OK, responseType, null);
} catch (ServerApiException se) {
String responseText = getSerializedApiError(se.getErrorCode(), se.getDescription(), parameterMap, responseType);
writeResponse(response, responseText, se.getErrorCode(), responseType, se.getDescription());
sb.append(" " +se.getErrorCode() + " " + se.getDescription());
} catch(RuntimeException e) {
