Very simple groovy script:
@Field List list def execute(Object args) { return list[0] }
I try to write simple code in java: