String roleMessage = task.getOwner() != null ? Messages.TASK_OWNER : Messages.TASK_NO_OWNER;
return new UserDetailsComponent(
task.getOwner(),
i18nManager.getMessage(roleMessage),
i18nManager.getMessage(Messages.TASK_OWNER_TRANSFER),
new ChangeOwnershipListener(task, taskDetailPanel));
}