ArrayList<ChannelSource> channelSources = (ArrayList<ChannelSource>) this.channelSourceManager
.findByProperty("channelSourceName", channelSource);
if (channelSources != null && channelSources.size() != 0)
this.candidate.setChannelSource(channelSources.get(0));
candidateCompetency ac = new candidateCompetency();
ArrayList<Skill> skills = (ArrayList<Skill>) this.skillManager
.findSkillByProperty("skillName", this.skill);
if (skills != null && skills.size() != 0) {
ac.setSkill(skills.get(0));
ac.setCandidate(this.candidate);
}
Set<candidateCompetency> candidateCompetencies = new HashSet<candidateCompetency>();
candidateCompetencies.add(ac);