code: private List<JoinableResourceBundle> getBundleDependencies(ResourceBundleDefinition definition,
  			List<JoinableResourceBundle> bundles) throws BundleDependencyException {
  
  		List<JoinableResourceBundle> dependencies = new ArrayList<>();
  		List<String> processedBundles = new ArrayList<>();
  		if (definition.isGlobal() && definition.getDependencies() != null && !definition.getDependencies().isEmpty()) {
  			throw new BundleDependencyException(definition.getBundleName(),
  					"The dependencies property is not allowed for global bundles. Please use the order property "
  							+ "to define the import order.");
  		}
  		initBundleDependencies(definition.getBundleName(), definition, dependencies, processedBundles, bundles);
  		return dependencies;
  	}
docs: Returns the bundle dependencies from the resource bundle definition
  
  @param definition
  the resource definition
  @param bundles
  the list of bundles
  
  @throws BundleDependencyException
  if an error exists in the dependency definition