code: public static List<Instance> getAllInstances( AbstractApplication application ) {
  
  		List<Instance> result = new ArrayList<> ();
  		for( Instance instance : application.getRootInstances())
  			result.addAll( InstanceHelpers.buildHierarchicalList( instance ));
  
  		return result;
  	}
docs: Gets all the instances of an application.
  @param application an application (not null)
  @return a non-null list of instances
  <p>
  The result is a list made up of ordered lists.<br>
  root-0, child-0-1, child-0-2, child-0-1-1, etc.<br>
  root-1, child-1-1, child-1-2, child-1-1-1, etc.<br>
  </p>
  <p>
  It means the resulting list can be considered as valid for starting instances
  from the root instances to the bottom leaves.
  </p>