Retentention and Target are checked and set by KlumCastValidatedHelperTransformation, but that does only work in Groovy. Check for alternatives to set these values in Java. (Annotation Processor?)