throws ServletException, IOException {
setResponeHeaders(response);
try {
JSONObject jsonInput = readRequest(request);
String methodName = jsonInput.optString("method");
if (methodName == null || methodName.trim().equals("")) {
throw new SpellCheckException("Wrong spellchecker-method-name:" + methodName);
}