Refactoring of Long Method in class ChallengeManager.java