add support for java and groovy