final String burst) {
boolean success = true;
try {
+ Set<Connector> enabledConnectors = new HashSet<Connector>();
+
List<MethodInvocation> invocations = parseInvocations(burst);
+ for (MethodInvocation invocation : invocations) {
+ final ClientConnector connector = getConnector(app,
+ invocation.getConnectorId());
+ if (connector.isConnectorEnabled()) {
+ enabledConnectors.add(connector);
+ }
+ }
for (int i = 0; i < invocations.size(); i++) {
MethodInvocation invocation = invocations.get(i);
continue;
}
- if (!connector.isConnectorEnabled()) {
+ if (!enabledConnectors.contains(connector)) {
if (invocation instanceof LegacyChangeVariablesInvocation) {
LegacyChangeVariablesInvocation legacyInvocation = (LegacyChangeVariablesInvocation) invocation;