(byte) ((ObjectStreamConstants.STREAM_MAGIC >>> 8) & 0xFF),
(byte) ((ObjectStreamConstants.STREAM_MAGIC >>> 0) & 0xFF)
};
public ConfigurationData readConfigurationData(InputStream in) throws IOException, ClassNotFoundException {
PushbackInputStream pushbackInputStream = new PushbackInputStream(in, 2);
byte[] streamHeader = new byte[2];
if (pushbackInputStream.read(streamHeader) != 2) throw new AssertionError("Cound not read stream header");
pushbackInputStream.unread(streamHeader);
// if this isn't a serialized config, fallback to the xstream marshaler
if (SERIALIZED_MAGIC[0] != streamHeader[0] || SERIALIZED_MAGIC[1] != streamHeader[1]) {
ConfigurationMarshaler marshaler;
try {