public static Serializable deserialize ( Serializable kh ) throws IOException , ClassNotFoundException { if ( kh == null ) { return null ; } if ( ! ( kh instanceof KeyHelper ) ) { return kh ; } KeyHelper ivKh = ( KeyHelper ) kh ; ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream ( ivKh . vBytes ) ; ObjectInputStream objectInputStream = new CCLObjectInputStream ( byteArrayInputStream ) ; Serializable result = ( Serializable ) objectInputStream . readObject ( ) ; objectInputStream . close ( ) ; // findbugs return result ; }
deserialize the Object reference corresponding to a primary key for a Handle to Rel . 3 . 5 4 . 0 Entity Bean . This method is called from the readResolve