Ensuring Compatibility and Flexibility in Java REST APIs with Custom Deserializers for Optional Properties