Removed dependencies to Swing on the file service.