public Object readMap(AbstractHessianInput in) throws IOException {
Object object = super.readMap(in);
if (object instanceof AbstractQuery) {
AbstractQuery abstractClientQuery = (AbstractQuery) object;
Object root = abstractClientQuery.getRoot();
if (root instanceof Class) {
ObjEntity entity = clientResolver.lookupObjEntity((Class) root);
if (entity == null) {
throw new CayenneRuntimeException("Unmapped client class: " + root);
}
abstractClientQuery.setRoot(entity.getName());
}
}
return object;
}