/** * Creates an operation. * * @param operation the operation name * @param address the address for the operation * * @return the operation * * @throws IllegalArgumentException if the address is not of type {@link org.jboss.dmr.ModelType#LIST} */ public static ModelNode createOperation(final String operation, final ModelNode address) { if (address.getType() != ModelType.LIST) { throw ControllerClientMessages.MESSAGES.invalidAddressType(); } final ModelNode op = createOperation(operation); op.get(OP_ADDR).set(address); return op; }