buffer.close();
if (buffer != null) buffer.close();
    public void destroy()    {        super.destroy();        // id is the only thing passivated.        ioService = null;        file = null;        try        {			buffer.close();		}        catch (IOException e)        {			e.printStackTrace();			throw new ResourceError(e.getMessage());		}        buffer = null;    }