if (creationDate.getTime() != null) {
if (creationDate != null) {
    public void setCreationDate(Calendar creationDate) {        if (creationDate.getTime() != null) {            this.setCreation(creationDate.getTime());            } else {            this.setCreation(null);        }    }