added exception on custom serialization
netbeans ignores