public static Object deserializeStream(final String witness) throws Exception {
  FileInputStream fileIs=new FileInputStream(witness);
  ObjectInputStream objIs=new ObjectInputStream(fileIs);
  return objIs.readObject();
}

public static Object deserializeStream ( final String witness ) throws Exception { FileInputStream fileIs = new FileInputStream ( witness ) ; ObjectInputStream objIs = new ObjectInputStream ( fileIs ) ; return objIs . readObject ( ) ; }
deserializes a specified file .
