* @param approval
* @return object suitable for serialization to JSON
*/
private ApprovalAttribute getApprovalAttribute(
Entry<ApprovalCategory.Id, ApprovalCategoryValue.Id> approval) {
ApprovalAttribute a = new ApprovalAttribute();
a.type = approval.getKey().get();
ApprovalType at = approvalTypes.byId(approval.getKey());
if (at != null) {
a.description = at.getCategory().getName();
}