How to not allow serialization of attributes of a class in Java?