Set<DistributedTest> result = new HashSet<DistributedTest>(); for (StudentTestQuestion studentTestQuestion : this.getStudentTestsQuestions()) { if (studentTestQuestion.getDistributedTest().getTestScope().getClassName().equals( ExecutionCourse.class.getName()) && studentTestQuestion.getDistributedTest().getTestScope().getKeyClass().equals( executionCourse.getIdInternal())) { result.add(studentTestQuestion.getDistributedTest()); } } return result;
Set<DistributedTest> result = new HashSet<DistributedTest>(); for (StudentTestQuestion studentTestQuestion : this.getStudentTestsQuestions()) { if (studentTestQuestion.getDistributedTest().getTestScope().getClassName().equals( ExecutionCourse.class.getName()) && studentTestQuestion.getDistributedTest().getTestScope().getKeyClass().equals( executionCourse.getIdInternal())) { result.add(studentTestQuestion.getDistributedTest()); }
	public Set<DistributedTest> getDistributedTestsByExecutionCourse(ExecutionCourse executionCourse) {		Set<DistributedTest> result = new HashSet<DistributedTest>();		for (StudentTestQuestion studentTestQuestion : this.getStudentTestsQuestions()) {			if (studentTestQuestion.getDistributedTest().getTestScope().getClassName().equals(					ExecutionCourse.class.getName())					&& studentTestQuestion.getDistributedTest().getTestScope().getKeyClass().equals(							executionCourse.getIdInternal())) {				result.add(studentTestQuestion.getDistributedTest());			}		}		return result;	}