}
profileManager.addProfile(p);
}
else {
p = profileManager.getProfile(profileName);
p.beginUpdate();
p.setName(textProfileName.getText());
p.setDescription(textProfileDescription.getText());
p.setSynchronizationType(comboType.getText());
p.setSource(src);
p.setDestination(dst);