@Transactional
public void createWorkTask(String title, String description, String currentUserName, long assignedToId, String priority) {
Account acc = accountService.loadAccountByUserName(currentUserName);
Person currentUser = acc.getUserProfile();
if (currentUser != null) {
Contactable contact = contactService.loadContactable(assignedToId);
WorkTask wt = new WorkTask();
wt.setTitle(title);
wt.setDetails(description);
wt.setPriority(WorkTask.Priorities.valueOf(priority));
wt.setRaisedBy(currentUser);