Add data service to index the file and store in Java. Iterate through the FITS files in a DRY way