Create a map to hold the permitted states

Each state will be represented by an instance of the State helper class.

You must create a map to hold your entity's State instances:

Figure 1. A map of permitted states
/**
   * A map of the states for this entity
   */
  private final Map<MYLIFECYCLEENTITYSTATEEntry,
    State<MYLIFECYCLEENTITYSTATEEntry>> states =
    new HashMap<MYLIFECYCLEENTITYSTATEEntry,
    State<MYLIFECYCLEENTITYSTATEEntry>>();