Java-Scala client-server project