Add filetype recognition for java and xml