if (output instanceof cdrBufOutput)
if (output instanceof BufferedCdrOutput)
  public static void write(OutputStream output, TaggedProfile value)  {    output.write_long(value.tag);    if (output instanceof cdrBufOutput)      {        // Highly probable.        output.write_long(value.profile_data.length);        try          {            output.write(value.profile_data);          }        catch (IOException e)          {            MARSHAL m = new MARSHAL();            m.minor = Minor.Encapsulation;            m.initCause(e);            throw m;          }      }    else      {    output.write_long(value.profile_data.length);    for (int i0 = 0; i0 < value.profile_data.length; i0++)          output.write_octet(value.profile_data[i0]);      }  }