add-hook for \\.java