[Java] Reduce scope of Publication public API.
Merge remote-tracking branch 'origin/master'