code: private Set<String> getClosureModuleDependencies(JoinableResourceBundle bundle, List<String> dependencies) {
  
  		Set<String> bundleDependencies = new HashSet<>();
  		if (bundle.getDependencies() != null) {
  			for (JoinableResourceBundle depBundle : bundle.getDependencies()) {
  				bundleDependencies.add(depBundle.getName());
  			}
  		}
  
  		for (String depBundleName : dependencies) {
  			if (bundle.getInclusionPattern().isGlobal() && depBundleName.equals(bundle.getName())) {
  				break;
  			} else {
  				bundleDependencies.add(depBundleName);
  			}
  		}
  		return bundleDependencies;
  	}
docs: Returns the module bundle dependency from the bundle dependency and the
  declared dependencies
  
  @param bundle
  the bundle
  @param dependencies
  the declared dependencies
  @return the list of the module dependency