tika-identify refactored