getMenuItem(id: Integer): MenuItem;
The getMenuItem method of the MenuItem class accesses a dynamically created menu item. This method returns null if there is no menu for the unique identifier of the menu specified in the id parameter.
An exception is raised if a MenuItem method is invoked from a server method.