def get_client_state(self):
app = get_app()<EOL>for client_state in self._client_states.values():<EOL><INDENT>if client_state.app == app:<EOL><INDENT>return client_state<EOL><DEDENT><DEDENT>raise ValueError('<STR_LIT>' % (app, ))<EOL>
Return the active ClientState instance.