public TopologyTestRunCase getTopologyTestRunCase(Long topologyId, Long testcaseId) { TopologyTestRunCase testCase = new TopologyTestRunCase(); testCase.setId(testcaseId); TopologyTestRunCase found = dao.get(new StorableKey(TopologyTestRunCase.NAMESPACE, testCase.getPrimaryKey())); if (found == null || !found.getTopologyId().equals(topologyId)) { return null; } return found; }