final ConfigurationReader parser = new ConfigurationReader();
try {
final FileFormat fileFormat = parser.loadConfigurationFile( ARQUIVO_XML );
final InputStream inputStream = new FileInputStream( ARQUIVO_TXT );
final BufferedReader bufIn = new BufferedReader( new InputStreamReader( inputStream ) );
MatchedRecord results;
while ( ( results = fileFormat.getNextRecord( bufIn ) ) != null ) {
if ( results.getRecordName().equals( "emprheader" ) ) {
//System.out.println( results.getBean( "beanheader" ) );
} else if ( results.getRecordName().equals( "emprdetail" ) ) {
//System.out.println( results.getBean( "empregado" ) );
//System.out.println( results.getBean( "pessoa" ) );
} else if ( results.getRecordName().equals( "emprtrailler" ) ) {
//System.out.println( results.getBean( "beantrailler" ) );
}
}
} catch ( FileNotFoundException e1 ) {