java_gen/pom.xml: Bump version to 0.4.0

Reviewer: @rlane 
CC: @vishnu-emmadi @brajneesh 

Snapshotting/freezing 0.3.8 for fl2 platform release.