@Override
public void setDocumentIdNumber(final String documentIdNumber) {
if (documentIdNumber == null || StringUtils.isEmpty(documentIdNumber.trim())) {
throw new DomainException("error.person.empty.documentIdNumber");
}
IdDocument idDocument = getIdDocument();
if (idDocument == null) {
idDocument = new IdDocument(this, documentIdNumber, (IdDocumentTypeObject) null);
} else {
idDocument.setValue(documentIdNumber);
}
logSetterNullString("log.personInformation.edit.generalTemplate.personalId", getDocumentIdNumber(), documentIdNumber,
"label.documentNumber");
super.setDocumentIdNumber(documentIdNumber);
}