Java: Refactoring, findFreePort() added to Server class