@Override
  public ServiceResult<SuccessType> ifSuccessful(
      Consumer<? super SuccessType> consumer) {
    if (isSuccessful()) {
      consumer.accept(result);
    }
    return this;
  }
Creates a {@link Success} object containing the errorMessage

@param <T> the type of the result
@param result the return value of the successful operation
@return a {@link Success} instance containing the return value
geode-core/src/main/java/org/apache/geode/services/result/impl/Success.java