minor optimization for getActionInstance() and getViewInstance()