String ownerName = getStringValue(taskData, GoogleCodeAttribute.USER_ASSIGNED);
String oldOwner = getOldOwner(oldAttributes);
if (!(ObjectUtils.equals(ownerName, oldOwner) || (StringUtils.isEmpty(ownerName) && StringUtils
.isEmpty(oldOwner)))) {
OwnerUpdate ownerUpdate;
if (!StringUtils.isEmpty(ownerName)) {
ownerUpdate = new OwnerUpdate(ownerName);
} else {
// remove the owner
// FIXME broken, doesn't work, null doesn't work as well
ownerUpdate = new OwnerUpdate(StringUtils.EMPTY);
}
updates.setOwnerUpdate(ownerUpdate);
}
updates.setStatus(new Status(getStringValue(taskData, GoogleCodeAttribute.STATUS)));