if (m_CurrentConverter == null) { if (m_DialogType == LOADER_DIALOG) m_CurrentConverter = ConverterUtils.getLoaderForFile(filename); else if (m_DialogType == SAVER_DIALOG) m_CurrentConverter = ConverterUtils.getSaverForFile(filename); else throw new IllegalStateException("Cannot determine loader/saver!");   if (m_CurrentConverter == null) return; }
  protected void configureCurrentConverter() {    String[]	extensions;    String	filename;        extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions();    filename   = getSelectedFile().getAbsolutePath();    try {      if (m_CurrentConverter instanceof AbstractFileSaver) {	// add extension if necessary	if (!filename.endsWith(extensions[0]))	  filename += extensions[0];      }      ((FileSourcedConverter) m_CurrentConverter).setFile(new File(filename));    }    catch (Exception e) {      e.printStackTrace();    }  }