private void doProcess(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
SourceRequestReader reader = new SourceRequestReaderImpl(req, fileUpload);
try {
String cmd = reader.isUpload() ? reader.getRequiredUploadString("cmd") : reader.getRequiredString("cmd");
Command command = commandFactory.getCommand(cmd);
Request request = command.buildRequest(reader);
log.debug("processing request: {}", ReflectionToStringBuilder.toString(request));
Response response = command.execute(request);
writeResponse(response, resp);