code: public com.sun.star.frame.XDispatch[] queryDispatches(
           com.sun.star.frame.DispatchDescriptor[] seqDescriptors )
      {
          int nCount = seqDescriptors.length;
          com.sun.star.frame.XDispatch[] seqDispatcher =
              new com.sun.star.frame.XDispatch[seqDescriptors.length];
  
          for( int i=0; i < nCount; ++i )
          {
              seqDispatcher[i] = queryDispatch(seqDescriptors[i].FeatureURL,
                                               seqDescriptors[i].FrameName,
                                               seqDescriptors[i].SearchFlags );
          }
          return seqDispatcher;
      }
docs: com.sun.star.frame.XDispatchProvider: