public static ModelNode createBatchRequest(ModelNode... steps) {
        final ModelNode composite = new ModelNode();
        composite.get(OPERATION).set(BATCH);
        composite.get(ADDRESS).setEmptyList();
        final ModelNode stepsNode = composite.get(BATCH_STEPS);
        for (ModelNode step : steps) {
            if (step != null) {
                stepsNode.add(step);
            }
        }
        return composite;
    }
public static ModelNode createBatchRequest ( ModelNode ... steps ) { final ModelNode composite = new ModelNode ( ) ; composite . get ( OPERATION ) . set ( BATCH ) ; composite . get ( ADDRESS ) . setEmptyList ( ) ; final ModelNode stepsNode = composite . get ( BATCH_STEPS ) ; for ( ModelNode step : steps ) { if ( step != null ) { stepsNode . add ( step ) ; } } return composite ; }
Creates a batch of operations that can be atomically invoked.

@param steps the different operation steps of the batch

@return the batch operation node