Using Tika to detect content type