minor changes to java package translation methods