creating a JavaBean defined in Groovy