use requires_groovy_code instead of referencing from java code