</BUG>
List<UaMonitoredItem> createdItems = newArrayListWithCapacity(itemsToCreate.size());
for (int i = 0; i < itemsToCreate.size(); i++) {
MonitoredItemCreateRequest request = itemsToCreate.get(i);
<BUG>MonitoredItemCreateResult result = results[i];
</BUG>
OpcUaMonitoredItem item = new OpcUaMonitoredItem(
request.getRequestedParameters().getClientHandle(),
request.getItemToMonitor(),
result.getMonitoredItemId(),

subscriptionId,
timestampsToReturn,
itemsToCreate
);
return future.thenApply(response -> {
List<MonitoredItemCreateResult> results = l(response.getResults());
List<UaMonitoredItem> createdItems = newArrayListWithCapacity(itemsToCreate.size());
for (int i = 0; i < itemsToCreate.size(); i++) {
MonitoredItemCreateRequest request = itemsToCreate.get(i);
MonitoredItemCreateResult result = results.get(i);
OpcUaMonitoredItem item = new OpcUaMonitoredItem(
request.getRequestedParameters().getClientHandle(),
request.getItemToMonitor(),
result.getMonitoredItemId(),
