catch ( IOException e ) {  e.printStackTrace(); return; }
    public void doImport()    {        FileReader in = null;        LdifIterator list = null;        LdifParser parser = new LdifParserImpl();        JFileChooser chooser = new JFileChooser();        int choice = chooser.showOpenDialog( this );        File selected = chooser.getSelectedFile();        if ( JFileChooser.APPROVE_OPTION != choice )        {            return;        }        try        {            in = new FileReader( selected );            list = new LdifIterator( in );            while ( list.hasNext() )            {                String dif = ( String ) list.next();                LockableAttributesImpl attrs = new LockableAttributesImpl();                parser.parse( attrs, dif );                String updn = ( String ) attrs.get( "dn" ).get();                LdapName ndn = new LdapName( StringTools.deepTrimToLower( updn ) );                attrs.remove( "dn" );                if ( null == partition.getEntryId( ndn.toString() ) )                {                    partition.add( updn, ndn, attrs );                    load();                }            }        }        catch ( NamingException e )        {            // @todo display popup with error here!            e.printStackTrace();            return;        }        catch ( FileNotFoundException e )        {            // @todo display popup with error here!            e.printStackTrace();            return;        }        catch ( IOException e )        {            // @todo display popup with error here!            e.printStackTrace();            return;        }        catch ( Exception e )        {            // @todo display popup with error here!            e.printStackTrace();            return;        }    }