code: public com.sun.star.frame.XDispatch queryDispatch( com.sun.star.util.URL aURL,
                                                         String sTargetFrameName,
                                                         int iSearchFlags )
      {
          if ( aURL.Protocol.compareTo("org.cogroo.addon:") == 0 )
          {
              if ( aURL.Path.compareTo("ReportError") == 0 )
                  return this;
          }
          return null;
      }
docs: com.sun.star.frame.XDispatchProvider: