public <ReceiverThrowableType extends Throwable> void sendTo( Receiver<? super EntityState, ReceiverThrowableType> receiver )
throws ReceiverThrowableType, EntityStoreException
{
UsecaseBuilder builder = UsecaseBuilder.buildUsecase( "qi4j.entitystore.preferences.visit" );
Usecase visitUsecase = builder.withMetaInfo( CacheOptions.NEVER ).newUsecase();
final DefaultEntityStoreUnitOfWork uow = new DefaultEntityStoreUnitOfWork(
entityStoreSpi,
newUnitOfWorkId(),
module,
visitUsecase,
System.currentTimeMillis() );
try
{
String[] identities = root.childrenNames();
for( String identity : identities )
{
EntityState entityState = uow.entityStateOf( EntityReference.parseEntityReference( identity ) );
receiver.receive( entityState );
}
}
catch( BackingStoreException e )
{