[java] move applicative code in app directory
Merge branch 'master' into version-1