return S3MemcacheSerialization.deserialize(item
.getValue()
.toByteArray(), item.getFlags());
} catch (ClassNotFoundException ex) {
ms.getErrorHandler().handleDeserializationError(
new InvalidValueException((new StringBuilder()).append(
"Can't find class for value of key '").append(key).append(
"'").toString(), ex));
} catch (IOException ex) {
throw new InvalidValueException((new StringBuilder())
.append("IO exception parsing value of '")
.append(key)
.append("'")
.toString(), ex);
}