make MessageEntity a type alias on the Scala side and replace it by japi.RequestEntity on the Java side