code: void ensureCondition(boolean condition, String messageFormat, Object... args) throws SerializationException {
          if (!condition) {
              throw new SerializationException(String.format(messageFormat, args));
          }
      }
docs: Verifies that the given condition is true. If not, throws a SerializationException.