Create and take note of @DocumentSetterMethods annotation

New style command classes can be annotated with @DocumentSetterMethods and
this makes the document generatator use the setter methods (rather than the
getter methods) to decide what the fields of the command are.

Also improve handling of static final fields.