use getter to access metadata reflClass property

It fixes a null pointer exception when using the --documents option in the generate documents command line.