J2EE Bad Practices: Sockets