protected void assertServiceState() {
        if (!isRunning) {
            throw new IllegalStateException("This bank service is not running");
        }
    }
Internal utility method that validate the internal state of this service.
samples/aspectj/src/main/java/org/apache/shiro/samples/aspectj/bank/SecureBankService.java