(String stateId)
| 36 | } |
| 37 | |
| 38 | public State loadState(String stateId) throws StateNotFoundException { |
| 39 | State state = mapper.load(State.class, stateId); |
| 40 | if ( state == null ) { |
| 41 | throw new StateNotFoundException(stateId); |
| 42 | } |
| 43 | return state; |
| 44 | } |
| 45 | |
| 46 | public List<State> loadStates(String sessionId, String gameId) throws SessionNotFoundException, GameNotFoundException { |
| 47 | if ( sessionModel.loadSession(sessionId) == null ) { |