private DocumentSequence lastSequence;
public DocumentSequence getSequence() throws ConfigurationException, IOException {
if ( lastSequence != null ) lastSequence.close();
return lastSequence = new CompositeDocumentSequence( new InputStreamDocumentSequence( this.getClass().getResourceAsStream( "documents.data" ), 10, new IdentityDocumentFactory(
new String[] { "encoding=UTF-8" } ), NUMBER_OF_DOCUMENTS ), new IntArrayDocumentCollection( INTEGER_DOCUMENT ), new DateArrayDocumentCollection( DATE_DOCUMENT ),
new MapVirtualDocumentCollection( VIRTUAL_DOCUMENT ) );
}