validateRecord routine just allows you to raise exceptions/errors or override. Also you can try to change the content of local fields, but it will not allow you to change CORE records. As it is mentioned in previous answer, you need to implement defaultFieldValues method to make changes on record. 2 important point with respect L3 Java Extensibility: