All your imports are belong to us. 
Oh, if you're getting errors with "serialize" somewhere in them...its because someone is sending a JFX object over the network.
You CANNOT do that. So please don't try, java tends to react poorly to brute force.