private final ChatContext chatContext;
private final LobbyContextImpl lobbyContext;
public ServerContextImpl(String username, String password)
throws LoginException {
this.accountContext = new AccountContextImpl(username, password);
this.cashierContext = new CashierContextImpl(accountContext);
this.chatContext = new ChatContextImpl(accountContext, ChatServer.getInstance().getServerChatRoom());
// singleton lobby is passed as an argument for flexibility.
// TODO fix - I think we should limit the use of singletons.
// We should for instance be able to run 2 independent servers in the