Setters for scala and groovy.