public PortfolioGenerator createPortfolioGenerator(final NameGenerator portfolioNameGenerator) {
final SwaptionSecurity[] swaptions = createSwaptions(PORTFOLIO_SIZE);
final SecurityGenerator<SwaptionSecurity> securities = createSwaptionSecurityGenerator(swaptions, PORTFOLIO_SIZE);
configure(securities);
final PositionGenerator positions = new SimplePositionGenerator<>(securities, getSecurityPersister(), getCounterPartyGenerator());
final PortfolioNodeGenerator rootNode = new LeafPortfolioNodeGenerator(new StaticNameGenerator("Swaptions"), positions, PORTFOLIO_SIZE);
return new PortfolioGenerator(rootNode, portfolioNameGenerator);
}