Specify the initial state

You must specify the initial state for new instances of your entity:

Figure 1. Specifying the initial state
/**
     * Defaults the state to
     * {@linkplain MYLIFECYCLEENTITYSTATEEntry#OPEN}.
     */
   public void setNewInstanceDefaults() {
   setState(OPEN);
   }
Note: If you find that new instances have a number of possible initial states, then consider whether: