Update SynapseDebugManager.java

refactored code