You can get a UserCodeWrapper for udf by calling `this.getUserCodeWrapper()` and don't need the tmp object.
It is initialized and set by the super() constructor call.