extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions(); if (m_DialogType == LOADER_DIALOG) newConverter = ConverterUtils.getLoaderForExtension(extensions[0]); else newConverter = ConverterUtils.getSaverForExtension(extensions[0]);  try { if (m_CurrentConverter == null) { m_CurrentConverter = newConverter;
if (!isAcceptAllFileFilterUsed()) {  extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions(); if (m_DialogType == LOADER_DIALOG) newConverter = ConverterUtils.getLoaderForExtension(extensions[0]); else newConverter = ConverterUtils.getSaverForExtension(extensions[0]);  try { if (m_CurrentConverter == null) { m_CurrentConverter = newConverter; } else { if (!m_CurrentConverter.getClass().equals(newConverter.getClass())) m_CurrentConverter = newConverter; }
  protected void updateCurrentConverter() {    String[]	extensions;    Object	newConverter;        // determine current converter    extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions();    if (m_DialogType == LOADER_DIALOG)      newConverter = ConverterUtils.getLoaderForExtension(extensions[0]);    else      newConverter = ConverterUtils.getSaverForExtension(extensions[0]);        try {      if (m_CurrentConverter == null) {	m_CurrentConverter = newConverter;      }      else {	if (!m_CurrentConverter.getClass().equals(newConverter.getClass()))	  m_CurrentConverter = newConverter;      }    }    catch (Exception e) {      m_CurrentConverter = null;      e.printStackTrace();    }  }