code: public SAXSourceLocator getLocator()
    {
  
      if (m_stylesheetLocatorStack.isEmpty())
      {
        SAXSourceLocator locator = new SAXSourceLocator();
  
        locator.setSystemId(this.getStylesheetProcessor().getDOMsystemID());
  
        return locator;
  
        // m_stylesheetLocatorStack.push(locator);
      }
  
      return ((SAXSourceLocator) m_stylesheetLocatorStack.peek());
    }
docs: Get the current stylesheet Locator object.
  
  @return non-null reference to the current locator object.