cdrBufInput cdr = new cdrBufInput(buf.toByteArray());
BufferredCdrInput cdr = new BufferredCdrInput(buf.toByteArray());
  public static IOR parse(String stringified_reference)                   throws BAD_PARAM  {    try      {        if (!stringified_reference.startsWith("IOR:"))          throw new BAD_PARAM("The string refernce must start with IOR:",                              FAILED, CompletionStatus.COMPLETED_NO);        IOR r = new IOR();        ByteArrayOutputStream buf = new ByteArrayOutputStream();        String x = stringified_reference;        x = x.substring(x.indexOf(":") + 1);        char cx;        for (int i = 0; i < x.length(); i = i + 2)          {            cx = (char) Integer.parseInt(x.substring(i, i + 2), 16);            buf.write(cx);          }        cdrBufInput cdr = new cdrBufInput(buf.toByteArray());        r._read(cdr);        return r;      }    catch (Exception ex)      {        ex.printStackTrace();        throw new BAD_PARAM(ex + " while parsing " + stringified_reference,                            FAILED, CompletionStatus.COMPLETED_NO);      }  }