}
public Collection<Integer> getSelectedContextPartitionPathIds(ContextPartitionSelector contextPartitionSelector) {
if (contextPartitionSelector instanceof ContextPartitionSelectorFiltered) {
ContextPartitionSelectorFiltered filter = (ContextPartitionSelectorFiltered) contextPartitionSelector;
ContextPartitionIdentifierInitiatedTerminated identifier = new ContextPartitionIdentifierInitiatedTerminated();
List<Integer> accepted = new ArrayList<Integer>();
for (Map.Entry<ContextControllerCondition, ContextControllerInitTermInstance> entry : endConditions.entrySet()) {
identifier.setEndTime(entry.getValue().getEndTime());
identifier.setStartTime(entry.getValue().getStartTime());
identifier.setProperties(entry.getValue().getStartProperties());
identifier.setContextPartitionId(entry.getValue().getInstanceHandle().getContextPartitionOrPathId());
if (filter.filter(identifier)) {
accepted.add(entry.getValue().getInstanceHandle().getContextPartitionOrPathId());
}
}
return accepted;