/**
 *
 * Copyright (c) 2006-2018, Speedment, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); You may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.speedment.runtime.core.util;

import com.speedment.runtime.core.exception.SpeedmentException;

/**
 *
 * @author Per Minborg
 */
public enum FeatureReadinessLevel {
    /**
     * The feature is pure experimental whereby the API is likely to change,
     * there are no or limited test coverage and the feature is likely to
     * exhibit unpredictable behavior including erratic results, memory leaks,
     * lingering resource allocations and complete JVM crashes. The feature may
     * also be removed at any time without prior notice.
     * <p>
     * THE USE OF THE FEATURE IN PRODUCTION SYSTEM IS DISSALOWED.
     */
    EXPERIMENTAL,
    /**
     * The feature has undergone limited testing and the API is likely to change
     * but likely not in a material way. The feature may exhibit unpredictable
     * behavior including erratic results, memory leaks, lingering resource
     * allocations.
     * <p>
     * THE USE OF THE FEATURE IN PRODUCTION SYSTEM IS HIGHLY DISCOURAGED.
     */
    PREVIEW,
    /**
     * The feature has undergone testing and the API is unlikely to undergo
     * anything else than minor changes. The feature might exhibit unpredictable
     * behavior including erratic results, memory leaks, lingering resource
     * allocations.
     * <p>
     * THE USE OF THE FEATURE IN PRODUCTION SYSTEM IS DISCOURAGED.
     */
    API_STABLE,
    /**
     * The feature has undergone regular testing and the API is stable. The
     * feature is unlikely to exhibit unpredictable behavior such as erratic
     * results, memory leaks, lingering resource allocations.
     * <p>
     * THE USE OF THE FEATURE IN PRODUCTION SYSTEM IS NOT RECOMMENDED.
     */
    RELEASE_CANDIDATE;

    public void assertAtLeast(FeatureReadinessLevel requiredLevel) {
        if (this.compareTo(requiredLevel) < 0) {
            throw new SpeedmentException(
                "The requred " + FeatureReadinessLevel.class.getSimpleName() + " was " + requiredLevel
                + " but this feature is only at level " + this
            );
        }
    }

}

@@ -731,19 +731,199 @@
 ption;%0A%0A
-/**
+import static java.lang.String.format;%0A%0A/**%0A * Enumeration of the readiness of a particular feature. This is used internally%0A * by Speedment to print an appropriate message on launch.
 %0A *%0A * @
@@ -941,16 +941,34 @@
 Minborg%0A
+ * @since  3.0.21%0A
  */%0Apubl
@@ -1446,10 +1446,10 @@
  DIS
-S
 A
+L
 LOWE
@@ -2547,16 +2547,260 @@
 IDATE;%0A%0A
+    /**%0A     * Throw a %7B@link SpeedmentException%7D if the required%0A     * %7B@link FeatureReadinessLevel%7D has not been met.%0A     *%0A     * @param requiredLevel       the required readiness level%0A     * @throws SpeedmentException if not met%0A     */%0A
     publ
@@ -2857,16 +2857,46 @@
 edLevel)
+%0A    throws SpeedmentException
  %7B%0A     
@@ -2980,16 +2980,23 @@
 ception(
+format(
 %0A       
@@ -3017,148 +3017,166 @@
 requ
+i
 red 
-%22 + FeatureReadinessLevel.class.getSimpleName() + %22 was %22 + requiredLevel%0A                + %22 but this feature is only at level %22 + this
+%25s is %25s but this feature is only at level %25s%22,%0A                FeatureReadinessLevel.class.getSimpleName(),%0A                requiredLevel.name(), name()
 %0A   
@@ -3184,16 +3184,17 @@
         
+)
 );%0A     
@@ -3208,7 +3208,5 @@
   %7D%0A
-%0A%7D%0A
+%7D

Fix typos and improve javadoc in public util class