m_xml_properties = new Properties();  InputStream is = OutputProperties.class.getResourceAsStream( "output_xml.properties"); BufferedInputStream bis = new BufferedInputStream(is);  m_xml_properties.load(bis);
m_xml_properties = loadPropertiesFile("output_xml.properties", null);
  static public Properties getDefaultMethodProperties(String method)  {    Properties defaultProperties = null;    try    {      if (null == m_xml_properties)  // fast check      {        synchronized (m_synch_object)        {          if (null == m_xml_properties)  // double check          {            m_xml_properties = new Properties();            InputStream is = OutputProperties.class.getResourceAsStream(              "output_xml.properties");            BufferedInputStream bis = new BufferedInputStream(is);            m_xml_properties.load(bis);          }        }      }      if (method.equals(Method.XML))      {        defaultProperties = m_xml_properties;      }      else if (method.equals(Method.HTML))      {        if (null == m_html_properties)  // fast check        {          synchronized (m_synch_object)          {            if (null == m_html_properties)  // double check            {              m_html_properties = new Properties(m_xml_properties);              InputStream is = OutputProperties.class.getResourceAsStream(                "output_html.properties");              BufferedInputStream bis = new BufferedInputStream(is);              m_html_properties.load(bis);            }          }        }        defaultProperties = m_html_properties;      }      else if (method.equals(Method.Text))      {        if (null == m_text_properties)  // fast check        {          synchronized (m_synch_object)          {            if (null == m_text_properties)  // double check            {              m_text_properties = new Properties(m_xml_properties);              InputStream is = OutputProperties.class.getResourceAsStream(                "output_text.properties");              BufferedInputStream bis = new BufferedInputStream(is);              m_text_properties.load(bis);            }          }        }        defaultProperties = m_text_properties;      }      else      {        // TODO: Calculate res file from name.        defaultProperties = m_xml_properties;      }    }    catch (IOException ioe)    {      throw new org.apache.xml.utils.WrappedRuntimeException(ioe);    }    return defaultProperties;  }