static void addReplaceOperationSteps(final CompositeOperationBuilder builder, final Deployment deployment) {
        final String name = deployment.getName();
        final String runtimeName = deployment.getRuntimeName();
        final ModelNode op = createOperation(DEPLOYMENT_FULL_REPLACE_OPERATION);
        op.get(NAME).set(name);
        if (runtimeName != null) {
            op.get(RUNTIME_NAME).set(runtimeName);
        }
        addContent(builder, op, deployment);
        op.get(ENABLED).set(deployment.isEnabled());
        builder.addStep(op);
    }
static void addReplaceOperationSteps ( final CompositeOperationBuilder builder , final Deployment deployment ) { final String name = deployment . getName ( ) ; final String runtimeName = deployment . getRuntimeName ( ) ; final ModelNode op = createOperation ( DEPLOYMENT_FULL_REPLACE_OPERATION ) ; op . get ( NAME ) . set ( name ) ; if ( runtimeName != null ) { op . get ( RUNTIME_NAME ) . set ( runtimeName ) ; } addContent ( builder , op , deployment ) ; op . get ( ENABLED ) . set ( deployment . isEnabled ( ) ) ; builder . addStep ( op ) ; }
Adds a {@code full-replace-deployment} step for the deployment.

@param builder    the builder to add the step to
@param deployment the deployment used to replace the existing deployment