cdrBufOutput out = new cdrBufOutput(profile.profile_data.length
BufferedCdrOutput out = new BufferedCdrOutput(profile.profile_data.length
  private static void addComponentTo(TaggedProfile profile,                                     TaggedComponent component)  {    if (profile.tag == TAG_MULTIPLE_COMPONENTS.value)      {        TaggedComponent[] present;        if (profile.profile_data.length > 0)          {            cdrBufInput in = new cdrBufInput(profile.profile_data);            present = new TaggedComponent[in.read_long()];            for (int i = 0; i < present.length; i++)              {                present[i] = TaggedComponentHelper.read(in);              }          }        else          present = new TaggedComponent[0];        cdrBufOutput out = new cdrBufOutput(profile.profile_data.length                                            + component.component_data.length                                            + 8);        // Write new amount of components.        out.write_long(present.length + 1);        // Write other components.        for (int i = 0; i < present.length; i++)          TaggedComponentHelper.write(out, present[i]);        // Write the passed component.        TaggedComponentHelper.write(out, component);        try          {            out.close();          }        catch (IOException e)          {            throw new Unexpected(e);          }        profile.profile_data = out.buffer.toByteArray();      }    else      // The future supported tagged profiles should be added here.      throw new BAD_PARAM("Unsupported profile type " + profile.tag);  }