in.close();
if ( in != null ) { in.close(); }
    static Object deserialize( Attributes attributes ) throws NamingException    {        ObjectInputStream in = null;        String className = ( String ) attributes.get( JCLASSNAME_ATTR ).get();        try        {            byte[] data = ( byte[] ) attributes.get( JSERIALDATA_ATTR ).get();            in = new ObjectInputStream( new ByteArrayInputStream( data ) );            return in.readObject();        }        catch ( Exception e )        {            NamingException ne = new NamingException( "De-serialization of '" + className + "' instance failed:\n"                + e.getMessage() );            ne.setRootCause( e );            throw ne;        }        finally        {            try            {                in.close();            }            catch ( IOException e )            {                throw new NamingException( "object deserialization stream close() failure" );            }        }    }