if (targetType == ComputationTargetType.POSITION) {
Position position = row.getPosition();
details.put("posId", position.getUniqueId());
details.put("position", position.getSecurity().getName());
DoubleValueFormatter formatter = new DoubleValueOptionalDecimalPlaceFormatter();
details.put("quantity", position.getQuantity().signum() == 0 ? "0" : formatter.format(position.getQuantity()));
} else {
details.put("position", row.getAggregateName());
}
}