*/
@Override
public VersionedPortfolioHandler apply(final Portfolio portfolio) {
try {
Iterable<PortfolioPosition> positions = new PortfolioConverter(portfolio, _xmlExternalIdValidator).getPositions();
return new VersionedPortfolioHandler(
portfolio.getName(),
positions);
} catch (PortfolioParsingException e) {
s_logger.error("Unable to parse portfolio [" + portfolio.getName() + "] - it will be skipped", e);