code: public static List<Instance> findInstancesByComponentName( AbstractApplication application, String componentName ) {
  
  		List<Instance> result = new ArrayList<> ();
  		for( Instance inst : getAllInstances( application )) {
  			if( componentName.equals( inst.getComponent().getName()))
  				result.add( inst );
  		}
  
  		return result;
  	}
docs: Finds instances by component name.
  @param application an application (not null)
  @param componentName a component name (not null)
  @return a non-null list of instances