You could also get rid of this if statement if cdef.getColumnDefName().getFamilyName() default to QueryConstants.DEFAULT_COLUMN_FAMILY_NAME instead of null