private fun <T> assertIsBoolean(newValue: T) {
            if (newValue !is Boolean)
                throw java.lang.IllegalArgumentException("Expected newValue to be a Boolean")
        }