public UserFile setTypeByExtention(String extention) { this.type = FileType.findByExtention(extention).getName(); return this; }