CdmApplicationState:New class to handle application state