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;
	}
public static Map < Component , File > findScopedInstancesDirectories ( AbstractApplication absApp ) { Map < Component , File > result = new HashMap < > ( ) ; for ( Component c : ComponentHelpers . findAllComponents ( absApp . getGraphs ( ) ) ) { if ( ! ComponentHelpers . isTarget ( c ) ) continue ; File dir = ResourceUtils . findInstanceResourcesDirectory ( absApp . getDirectory ( ) , c ) ; if ( ! dir . exists ( ) ) continue ; result . put ( c , dir ) ; } return result ; }
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)