if (candidate.getReference().getKind() == ComponentKind.IMPLEMENTATION)
providerInstancesQuery.append("(").append(CST.IMPLNAME).append("=").append(candidate.getReference().getName()).append(")");
}
providerInstancesQuery.append(")");
ApamFilter query = ApamFilter.newInstance(providerInstancesQuery.toString());
/*
* TODO We can not be sure that the candidate instance corresponds to the selected revision of the implementation. We
* are just assuming that instances can be created without considering versions, this may not be true if the implementation
* declaration has changed in a not backward compatible way