public void doUpdate(Model model, ModelPayload payload) {
// [re-]set the account interface options for a given interface and account
final Marshaler marshaler = context.getMarshaler();
final IInterfaceService isvc = context.getEntityServiceFactory().instance(IInterfaceService.class);
final String id = model.getId();
final String accountId = id.substring(0, id.indexOf('|'));
final String intfId = id.substring(id.indexOf('|')+1);
AccountInterface ai = isvc.loadAccountInterface(accountId, intfId);
ai = marshaler.marshalModel(model, ai);
isvc.setAccountInterface(ai);
final MarshalOptions moptions = context.getMarshalOptionsResolver().resolve(SmbizEntityType.ACCOUNT_INTERFACE);
final Model m = marshaler.marshalEntity(ai, moptions);
payload.setModel(m);
}