We had the same situation on the zk-runtime branch but we called the findAvailableTcpPort() method from within the constructor.