code: public ViewFactory getViewFactory()
      {
          if (m_viewFactory != null)
              return m_viewFactory;
          m_viewFactory = super.getViewFactory();
          if (m_viewFactory != null)
              return m_viewFactory;
          String viewType = this.getProperty(ScreenModel.VIEW_TYPE);
          if (viewType == null)
              viewType = ScreenModel.SWING_TYPE;
          char viewPrefix = Character.toUpperCase(viewType.charAt(0));
          if (ScreenModel.SWING_TYPE.equalsIgnoreCase(viewType))
              viewPrefix = 'V';   // Special, swing starts with 'V'
          return m_viewFactory = ViewFactory.getViewFactory(viewType, viewPrefix);
      }
docs: Get the environment to use for this record owner.
  @return Record owner's environment, or null to use the default enviroment.