[java] Updated with v5.1 java source