public static List < Instance > getAllInstances ( AbstractApplication application ) { List < Instance > result = new ArrayList <> ( ) ; for ( Instance instance : application . getRootInstances ( ) ) result . addAll ( InstanceHelpers . buildHierarchicalList ( instance ) ) ; return result ; }
Gets all the instances of an application .