/**
* Save submitted skill.
*/
private void saveSkill(SkillData submittedData) {
Skill currentSkill = (Skill) getDefaultModelObject();
if(currentSkill == null) {
currentSkill = new Skill();
currentSkill.setUser(authorizedUserService.getCurrentUser());
setDefaultModelObject(currentSkill);
}
currentSkill.setTitle(submittedData.getTitle());
currentSkill.setDescription(submittedData.getDescription());
currentSkill = skillsWriter.save(currentSkill);
setDefaultModelObject(currentSkill);
}