registry removed from constructor, ServerLink.class created to manage the connection tot he server.