code: public List<Instance> listChildrenInstances( String applicationName, String instancePath, boolean all ) {
  		this.logger.finer( "Listing children instances for " + instancePath + " in " + applicationName + "." );
  
  		WebResource path = this.resource
  				.path( UrlConstants.APP ).path( applicationName ).path( "instances" )
  				.queryParam( "all-children", String.valueOf( all ));
  
  		if( instancePath != null )
  			path = path.queryParam( "instance-path", instancePath );
  
  		List<Instance> result =
  				this.wsClient.createBuilder( path )
  				.accept( MediaType.APPLICATION_JSON )
  				.type( MediaType.APPLICATION_JSON )
  				.get( new GenericType<List<Instance>> () {});
  
  		if( result != null ) {
  			this.logger.finer( result.size() + " children instances were found for " + instancePath + " in " + applicationName + "." );
  		} else {
  			this.logger.finer( "No child instance was found for " + instancePath + " in " + applicationName + "." );
  			result = new ArrayList<>( 0 );
  		}
  
  		return result;
  	}
docs: Lists all the children of an instance.
  @param applicationName the application name
  @param instancePath the instance path (null to get root instances)
  @param all true to list indirect children too, false to only list direct children
  @return a non-null list of instance paths