log.debug("State was on client");
}
Object state = null;
ByteArrayInputStream bis = null;
GZIPInputStream gis = null;
ObjectInputStream ois = null;
byte[] bytes =Base64.decodeBase64(viewString.getBytes());
bis = new ByteArrayInputStream(bytes);
try {
gis = new GZIPInputStream(bis);
ois = new ObjectInputStream(gis);
structure = ois.readObject();
state = ois.readObject();
// store the state object temporarily in ThreadLocal viewStateData scope
// until it is processed by getComponentStateToRestore
// which resets it.
viewStateData.set(state);
bis.close();
gis.close();
} catch (IOException e) {
log.error(e.getMessage(),e);
} catch (ClassNotFoundException e) {
log.error(e.getMessage(),e);
}