ignoring java warning about unsafe groovy code