public static <S extends Serializable>S deserialize(byte[] bytes) throws IOException {
  if (bytes == null) {
    return null;
  }
  return deserialize(new ByteArrayInputStream(bytes));
}

public static < S extends Serializable > S deserialize ( byte [ ] bytes ) throws IOException { if ( bytes == null ) { return null ; } return deserialize ( new ByteArrayInputStream ( bytes ) ) ; }
deserializes the given byte array into to a newly allocated object .
