is.read();
is.read();
Hessian2Input in = new Hessian2Input(is);
Hessian2Output out = new Hessian2Output(os);
in.startCall();
String method = in.getMethod();
Object []args = in.readArguments();
in.completeCall();
try {
if (method.equals("lookup") ||
method.equals("lookup_string") ||
method.equals("lookup_1"))
executeLookup(args, in, out);
else if (method.equals("list"))
executeList(args, in, out);
else
executeUnknown(method, args, in, out);
} catch (HessianProtocolException e) {
throw e;
} catch (Throwable e) {
log.log(Level.WARNING, e.toString(), e);
out.startReply();
out.writeFault("ServiceException", e.getMessage(), e);
out.completeReply();
}
out.flush();
}