* @returns Null on success, or a collection of Exceptions
*/
public ModelResult execute(Object source, Object target)
throws ModelException {
ModelResult modelResult = new ModelResultBase();
if (isBlank(getKey())) {
insert();
modelResult.addMessage(Tokens.DATA_RECORD_INSERTED);
}
else {
update();
modelResult.addMessage(Tokens.DATA_RECORD_UPDATED);
}
modelResult.addMessage(getKey());
modelResult.add(target);
return modelResult;
}