}
try {
Class<? extends Toadlet> c = t.getClass();
Method m = c.getMethod(methodName, HANDLE_PARAMETERS);
if (methodIsConfigurable) {
AllowData anno = m.getAnnotation(AllowData.class);
if (anno == null) {
if (data != null) {
sendError(sock.getOutputStream(), 400, "Bad Request", "Content not allowed", true, null);
ctx.close();
return;
}
} else if (anno.value()) {
if (data == null) {
sendError(sock.getOutputStream(), 400, "Bad Request", "Missing Content", true, null);
ctx.close();
return;
}