Attributes attrs = new BasicAttributes( true ); LdifParser parser = new LdifParserImpl(); try { parser.parse( attrs, text.trim() ); setValue( attrs ); } catch ( NamingException e ) { throw ( IllegalArgumentException ) new IllegalArgumentException().initCause( e ); }
setValue( readEntry( text ) );
    public void setAsText( String text ) throws IllegalArgumentException    {        if ( text == null )        {            text = "";        }        Attributes attrs = new BasicAttributes( true );        LdifParser parser = new LdifParserImpl();        try        {            parser.parse( attrs, text.trim() );            setValue( attrs );        }        catch ( NamingException e )        {            throw ( IllegalArgumentException ) new IllegalArgumentException().initCause( e );        }    }