DGM-23 Refactored common code in the DegraphmalizerLifecycleListener. Added some javadoc to classes.