We should probably use the functionality in OwsUtil for this type of reflection. That is what we use elsewhere. If you need to make the ClassProperties class public then do so.