cdrOutput encapsulation = profile.createEncapsulation();
AbstractCdrOutput encapsulation = profile.createEncapsulation();
    public void write(cdrOutput profile)    {      cdrOutput encapsulation = profile.createEncapsulation();      narrow.write(encapsulation);      wide.write(encapsulation);      try        {          encapsulation.close();        }      catch (IOException ex)        {          throw new InternalError();        }    }