Also, if you class is just a pojo you dont really need to create it in two places...
the server code can access all of your client code.
You just need to make the classes you want to transport from client to server or vice versa.
In your example Contact may stay in the client package, and if you need to send a Contact object to the server, or make the server
send it to you, just make this class Serializable.