question: public static void filterHiddenAttributes ( Set attributeSchemas ) { removeAttributeSchemaWithoutI18nKey ( attributeSchemas ) ; for ( Iterator iter = attributeSchemas . iterator ( ) ; iter . hasNext ( ) ; ) { AttributeSchema as = ( AttributeSchema ) iter . next ( ) ; String any = as . getAny ( ) ; if ( ! hasAnyAttribute ( any , ANY_REQUIRED ) && ! hasAnyAttribute ( any , ANY_DISPLAY ) && ! hasAnyAttribute ( any , ANY_ADMIN_DISPLAY ) && ! hasAnyAttribute ( any , ANY_DISPLAYRO ) && ! hasAnyAttribute ( any , ANY_ADMIN_DISPLAYRO ) ) { iter . remove ( ) ; } else if ( getTagClassName ( as ) == null ) { iter . remove ( ) ; } } }
target:  Removes hidden attribute schemas.