if (!contextPartitionName.equals(metaData.getContextPartitionName())) {
throw new VariableNotFoundException("Variable by name '" + variableName + "' is a declared for context '" + metaData.getContextPartitionName() + "' however the expected context is '" + contextPartitionName + "'");
}
}
}
ContextManager contextManager = services.getContextManagementService().getContextManager(contextPartitionName);
if (contextManager == null) {
throw new VariableNotFoundException("Context by name '" + contextPartitionName + "' cannot be found");
}
Map<Integer, ContextPartitionDescriptor> contextPartitions = contextManager.extractPaths(contextPartitionSelector).getContextPartitionInformation();
if (contextPartitions.isEmpty()) {
return Collections.emptyMap();
}
Map<String, List<ContextPartitionVariableState>> statesMap = new HashMap<String, List<ContextPartitionVariableState>>();
for (String variableName : variableNames) {