code: public static Map<String,byte[]> storeInstanceProbeResources( File applicationFilesDirectory, Instance instance ) throws IOException {
  
  		// Measure files (are not located with recipes, so no trouble with component inheritance).
  		// There can also be a properties file to inject values.
  		String[] exts = {
  				Constants.FILE_EXT_MEASURES,
  				Constants.FILE_EXT_MEASURES + ".properties"
  		};
  
  		Map<String,byte[]> result = new HashMap<> ();
  		for( String ext : exts ) {
  			String fileName = instance.getComponent().getName() + ext;
  			File autonomicMeasureFile = new File( applicationFilesDirectory, Constants.PROJECT_DIR_PROBES + "/" + fileName );
  			if( ! autonomicMeasureFile.exists())
  				break;
  
  			ByteArrayOutputStream os = new ByteArrayOutputStream();
  			Utils.copyStream( autonomicMeasureFile, os );
  			result.put( autonomicMeasureFile.getName(), os.toByteArray());
  		}
  
  		return result;
  	}
docs: Stores the instance's resources related to probes into a map.
  @param applicationFilesDirectory the application's directory
  @param instance an instance (not null)
  @return a non-null map (key = the file location, relative to the instance's directory, value = file content)
  @throws IOException if something went wrong while reading a file