#set ($fieldname = $detail.getId())