@Inject
Provider<StopInstanceOperation> stopOperationProvider;
public void stopInstances(List<InstanceData> instances) {
for (InstanceData instance : instances) {
StopInstanceOperation op = stopOperationProvider.get();
op.init(instance);
enqueue(op);
}
}