public static InstanceFilter createFilter( final String path, String installerName ) {

		List<String> types = Utils.splitNicely( path, ALTERNATIVE );
		OrNode rootNode = new OrNode();
		for( String type : types ) {
			Node node = buildNodeForPath( type );
			rootNode.delegates.add( node );
		}

		return new InstanceFilter( path, rootNode, installerName );
	}
public static InstanceFilter createFilter ( final String path , String installerName ) { List < String > types = Utils . splitNicely ( path , ALTERNATIVE ) ; OrNode rootNode = new OrNode ( ) ; for ( String type : types ) { Node node = buildNodeForPath ( type ) ; rootNode . delegates . add ( node ) ; } return new InstanceFilter ( path , rootNode , installerName ) ; }
Factory for {@code Filter}s.

@param path component path for the filter to be created (neither null, nor empty)
@param installerName
@return the created filter
@throws IllegalArgumentException if {@code path} is an illegal component path