if (AuthorizationProvider.isObjectAuthorized(form))
cmd = new AddFormCommand(form);
}
else
if (actions[i] instanceof IEditFormProvider) {
IEditForm form = ((IEditFormProvider)actions[i]).getEditForm(null);
if (AuthorizationProvider.isObjectAuthorized(form))
cmd = new EditFormCommand(form);
}
else