code: public static Serializable serialize(Serializable serializable) throws IOException {
          if (serializable == null)
          {
              return null;
          }
          if (serializable instanceof KeyHelper)
          {
              return serializable;
          }
          ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
          ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);
          objectOutputStream.writeObject(serializable);
          byteArrayOutputStream.flush();//d164668
          KeyHelper vkh = new KeyHelper();
          vkh.vBytes = byteArrayOutputStream.toByteArray();
  
          return vkh;
      }
docs: serialize the primary key corresponding to a Handle to an entity bean for Rel. 3.5, 4.0.
  This method is called from the writeObject
  
  @param serializable - Serializable key to be converted into a KeyHelper.
  
  @return Serializable the KeyHelper with the serialized primary key.
  
  @exception java.io.IOException - The EJBObject could not be serialized
  because of a system-level failure.