Jar writer and refactoring in files utils