public synchronized PagingStore newStore(final SimpleString destinationName, final AddressSettings settings) throws Exception
{
Field factoryField = PagingStoreFactoryNIO.class.getDeclaredField("executorFactory");
factoryField.setAccessible(true);
OrderedExecutorFactory factory = (org.hornetq.utils.OrderedExecutorFactory)factoryField.get(this);
return new FailingPagingStore(destinationName, settings, factory.getExecutor(), syncNonTransactional);
}