Fixed Java/Scala compatibility. Defined val/var in trait #SCL-7541 Fixed