final ObjectInputStream is = new ObjectInputStream(inputStream)) {
return is.readObject();
} catch (ClassNotFoundException | IOException e) {
throw new SerialisationException("Unable to deserialise object, failed to recreate object", e);
}
<BUG>}
public <T> T deserialise(final byte[] bytes, final Class<T> clazz) throws SerialisationException {</BUG>
return clazz.cast(this.deserialise(bytes));
}
private void close(final Closeable close) {

final ObjectInputStream is = new ObjectInputStream(inputStream)) {
return is.readObject();
} catch (ClassNotFoundException | IOException e) {
throw new SerialisationException("Unable to deserialise object, failed to recreate object", e);
}
}
@Override
public Object deserialiseEmptyBytes() {
return null;
}
public <T> T deserialise(final byte[] bytes, final Class<T> clazz) throws SerialisationException {
return clazz.cast(this.deserialise(bytes));
}
private void close(final Closeable close) {
