throws IOException {
Serializable result = serializer.deserialize(Serializable.class, request);
String path;
Action<Serializable, Serializable> action = ActionContext.getContext().getAction();
if (action instanceof Pageable) {
Pathable pathAction = (Pathable)action;
path = pathAction.getPath();
} else {
path = getPath(action);
}
return deserializePath(request, result, path);
}