Document document = null;
try {
document = Utils.newDocumentFromInputStream(request.getInputStream());
} catch (CheckoutException e) {
Debug.logError(e, module);
<BUG>sendResponse(response, null, true);
} catch (IOException e) {</BUG>
Debug.logError(e, module);
<BUG>sendResponse(response, null, true);
}</BUG>
if (document != null) {

Document document = null;
try {
document = Utils.newDocumentFromInputStream(request.getInputStream());
} catch (CheckoutException e) {
Debug.logError(e, module);
sendResponse(response, null, e);
} catch (IOException e) {
Debug.logError(e, module);
sendResponse(response, null, e);
}
if (document != null) {
