adding javadoc and removing setType by GroupRef