if (AuthorizationProvider.isObjectAuthorized(form))
cmd = new EditFormCommand(form);
}
else
if (actions[i] instanceof IViewFormProvider) {
IViewForm form = ((IViewFormProvider)actions[i]).getViewForm(null);
if (AuthorizationProvider.isObjectAuthorized(form))
cmd = new ShowFormCommand(form);
}
else