< T > List < ExportContainer > extractExportContainers ( final T t , final IClassContainer classContainer ) { final List < ExportContainer > exports = new ArrayList <> ( ) ; // Using only SIMPLE values containers classContainer . getFormatSupported ( format ) . forEach ( ( k , v ) -> { try { k . setAccessible ( true ) ; final String exportFieldName = v . getExportName ( ) ; final Object exportFieldValue = k . get ( t ) ; exports . add ( buildContainer ( exportFieldName , exportFieldValue , v . getType ( ) ) ) ; k . setAccessible ( false ) ; } catch ( Exception ex ) { logger . warning ( ex . getMessage ( ) ) ; } } ) ; return exports ; }
Generates class export field - value map