final DistributedTest distributedTest = rootDomainObject.readDistributedTestByOID(testId); metadatas = Metadata.findVisibleMetadataFromExecutionCourseNotOfTestQuestion(executionCourse, distributedTest);
final DistributedTest distributedTest = rootDomainObject.readDistributedTestByOID(testId); metadatas = Metadata.findVisibleMetadataFromExecutionCourseNotOfDistributedTest( executionCourse, distributedTest);
    public List<InfoMetadata> run(Integer executionCourseId, Integer testId, Boolean isDistributedTest) throws ExcepcaoPersistencia {    	final ExecutionCourse executionCourse = rootDomainObject.readExecutionCourseByOID(executionCourseId);        final Set<Metadata> metadatas;        if (testId == null) {            metadatas = executionCourse.findVisibleMetadata();        } else if (isDistributedTest == false) {        	final TestQuestion testQuestion = rootDomainObject.readTestQuestionByOID(testId);            metadatas = Metadata.findVisibleMetadataFromExecutionCourseNotOfTestQuestion(executionCourse, testQuestion);        } else if (isDistributedTest == true) {        	final DistributedTest distributedTest = rootDomainObject.readDistributedTestByOID(testId);        	metadatas = Metadata.findVisibleMetadataFromExecutionCourseNotOfTestQuestion(executionCourse, distributedTest);        } else {        	return null;        }        final List<InfoMetadata> infoMetadataList = new ArrayList<InfoMetadata>(metadatas.size());        for (Metadata metadata : metadatas) {            infoMetadataList.add(InfoMetadata.newInfoFromDomain(metadata));        }        return infoMetadataList;    }