[Change] all java code migrated to scala