109110111112113114115116117118119
public User get(@PathParam("id") String id) { StoredUser user = getStoredUser(id); if (user == null) throw new NotFoundException(); return user.toUser(); } public StoredUser getStoredUser(String id) { return (StoredUser) cache.get("/users/" + id);