removed unnecessary utility method

remove unnecessary utility method and also removed apache-tika from pom.