code: void checkInternalConsistency() throws IllegalStateException {
  		if (encryptionKey == null) {
  			throw new IllegalStateException("Missing encryption key");
  		}
  
  		switch (state) {
  			case LOGGED_IN:
  				if (StringUtils.isNullOrEmpty(userId)) {
  					throw new IllegalStateException("Missing user id");
  				}
  				break;
  			case LOGGED_OUT:
  				throw new IllegalStateException("Invalid conversation state: " + state);
  			default:
  				break;
  		}
  	}
docs: Checks the internal consistency of the conversation object (temporary solution)