if ( object != null && clazz.isAssignableFrom( object.getClass() ) ) {
HashMap map = new HashMap();
ClassProperties cp = OwsUtils.getClassProperties(clazz);
for ( String p : cp.properties() ) {
if ( "Class".equals( p ) ) continue;
Object value = OwsUtils.get(object, p);
if ( value == null ) {
value = "null";
}