ManagedOperation managedOperation = getManagedOperation(managedComponent, operationDefinition);
// Convert parameters into MetaValue array.
MetaValue[] parameterMetaValues = ConversionUtils.convertOperationsParametersToMetaValues(managedOperation,
parameters, operationDefinition);
// invoke() takes a varargs, so we need to pass an empty array, rather than null.
MetaValue resultMetaValue = managedOperation.invoke(parameterMetaValues);
OperationResult result = new OperationResult();
// Convert result MetaValue to corresponding Property type.
ConversionUtils.convertManagedOperationResults(managedOperation, resultMetaValue, result.getComplexResults(),
operationDefinition);
// If this is a lifecycle operation ask for an avail check