code: public static Map<Component,File> findScopedInstancesDirectories( AbstractApplication absApp ) {
  
  		Map<Component,File> result = new HashMap<> ();
  		for( Component c : ComponentHelpers.findAllComponents( absApp.getGraphs())) {
  
  			// Target?
  			if( ! ComponentHelpers.isTarget( c ))
  				continue;
  
  			// Is there a resources directory?
  			File dir = ResourceUtils.findInstanceResourcesDirectory( absApp.getDirectory(), c );
  			if( ! dir.exists())
  				continue;
  
  			result.put( c, dir );
  		}
  
  		return result;
  	}
docs: Finds the resource directories for scoped instances.
  @param applicationFilesDirectory the application's directory
  @param graph the graph
  @return a non-null map (key = component, value = directory)