added java mode to programming hooks