public TaskPriority(Integer id) {
   this.id = new Long(id);
   this.value = id;
   this.name = Priority.findByValue(id);
 }
 public TaskPriority(Priority priority) {
   this.id = new Long(priority.getValue());
   this.value = priority.getValue();
   this.name = Utilities.truncate(priority.getName(), 50);
 }