protected Position createPosition(final String uid, final int quantity, final Security security, final String attr1Value, final String attr2Value, final Trade trade1, final Trade trade2) {
final SimplePosition position = new SimplePosition(new BigDecimal(quantity), security.getExternalIdBundle());
position.setSecurityLink(SimpleSecurityLink.of(security));
if (attr1Value != null) {
position.addAttribute("Attr1", attr1Value);
}
if (attr2Value != null) {
position.addAttribute("Attr2", attr2Value);
}
if (trade1 != null) {