Adding a method deserializer on XStreamBuilderImpl to inform if is a deserialization.