code: protected void addLinkedResources(String path, GeneratorContext context) {
  		List<Locale> locales = new ArrayList<>();
  		Locale currentLocale = context.getLocale();
  		if (currentLocale != null) {
  			locales.add(currentLocale);
  			if (StringUtils.isNotEmpty(currentLocale.getVariant())) {
  				locales.add(new Locale(currentLocale.getCountry(), currentLocale.getLanguage()));
  			}
  			if (StringUtils.isNotEmpty(currentLocale.getLanguage())) {
  				locales.add(new Locale(currentLocale.getCountry()));
  			}
  		}
  
  		// Adds fallback locale
  		locales.add(control.getFallbackLocale());
  		Locale baseLocale = new Locale("", "");
  		if (!locales.contains(baseLocale)) {
  			locales.add(baseLocale);
  		}
  
  		List<FilePathMapping> fMappings = getFileMappings(path, context, locales);
  		addLinkedResources(path, context, fMappings);
  
  	}
docs: Adds the linked resources
  
  @param path
  the resource path
  @param context
  the generator context