/** * @param client The hardware wallet client */ public HardwareWalletContext(HardwareWalletClient client) { this.client = client; // Ensure the service is subscribed to low level message events from the client MessageEvents.subscribe(this); // Verify the environment if (!client.attach()) { log.warn("Cannot start the service due to a failed environment."); throw new IllegalStateException("Cannot start the service due to a failed environment."); } }