return _wildcardIndicator;
}
//------------------------------------------------------------------------
private static SimplePortfolioNode copyNode(final PortfolioNode node, final Integer maxNodes, final Integer maxPositions) {
final SimplePortfolioNode copy = new SimplePortfolioNode(node.getUniqueId(), node.getName());
if (maxNodes != null && maxNodes > 0) {
final List<PortfolioNode> childNodes = node.getChildNodes();
int size = childNodes.size();
if (size > 0) {
if (size > maxNodes) {
size = maxNodes;
}
for (int i = 0; i < size; i++) {
copy.addChildNode(copyNode(childNodes.get(i), maxNodes, maxPositions));
}
}
} else if (maxNodes == null) {
for (final PortfolioNode child : node.getChildNodes()) {
copy.addChildNode(copyNode(child, maxNodes, maxPositions));
}
}
if (maxPositions != null && maxPositions > 0) {
final List<Position> positions = node.getPositions();
int size = positions.size();
if (size > 0) {
if (size > maxPositions) {
size = maxPositions;
}
for (int i = 0; i < size; i++) {
copy.addPosition(positions.get(i));
}
}
} else if (maxPositions == null) {
copy.addPositions(node.getPositions());
}
return copy;
}