groostav
05/24/2016, 10:04 PMval throwNoProp = { throw STNoSuchPropertyException(ex, null, "${inst.javaClass.name}.$propertyName") }
when(inst){
is CharSequence -> when(propertyName){
"nullOrBlank" -> return inst.isNullOrBlank()
else -> return throwNoProp()
}
else -> return throwNoProp()
}