code: private static Collection<InstanceContextBean> descendantInstances( final InstanceContextBean instance ) {
  
  		final Collection<InstanceContextBean> result = new ArrayList<InstanceContextBean>();
  		for (final InstanceContextBean child : instance.getChildren()) {
  			result.add( child );
  			result.addAll( descendantInstances( child ) );
  		}
  
  		return result;
  	}
docs: Returns all the descendant instances of the given instance.
  @param instance the instance which descendants must be retrieved.
  @return the descendants of the given instance.