Long orderId = this.brokerageAccountService.placeOrder(
USERNAME1, brokerageAccount1Id, orderParams);
Order order = this.brokerageAccountService.findOrder(orderId);
// Acknowledge the order
ExecutionReport executionReport = ExecutionReport.createNewType(order);
this.brokerageAccountService.processExecutionReport(executionReport);
// Execute the trade
executionReport = ExecutionReport.createTradeType(
order,