private boolean isCollectionClass ( Class < ? > clazz ) { if ( clazz == RESTBaseEntityUpdateCollectionV1 . class || clazz == RESTBaseEntityCollectionV1 . class ) { return true ; } else if ( clazz . getSuperclass ( ) != null ) { return isCollectionClass ( clazz . getSuperclass ( ) ) ; } else { return false ; } }
Checks if a class is or extends the REST Base Collection class .