code: @Override
  	public Map<String,byte[]> findScriptResourcesForAgent( String targetId ) throws IOException {
  
  		Map<String,byte[]> result = new HashMap<>( 0 );
  		File targetDir = new File( findTargetDirectory( targetId ), Constants.PROJECT_SUB_DIR_SCRIPTS );
  		if( targetDir.isDirectory()){
  
  			List<String> exclusionPatterns = Arrays.asList(
  				"(?i).*" + Pattern.quote( Constants.LOCAL_RESOURCE_PREFIX ) + ".*"
  			);
  
  			result.putAll( Utils.storeDirectoryResourcesAsBytes( targetDir, exclusionPatterns ));
  		}
  
  		return result;
  	}
docs: Finding script resources