return locked;
}
public <T> void addHandler(String name, T handler, Class<T>... classes) {
if (locked) {
throw new JsonRpcException("executor has been locked, can't add more handlers");
}
synchronized (handlers) {
HandleEntry<T> handleEntry = new HandleEntry<T>(typeChecker, handler, classes);
if (this.handlers.containsKey(name)) {