...
Use the Class mediator for user-specific, custom developments only when there is no built-in mediator that already provides the required functionality. Maintaining custom classes incurs a high overhead. Therefore avoid using them unless the scenario is frequently re-used and very user-specific. Your class mediator might not be picked up and updated, if you use an existing package when creating it.
For best results, use WSO2 Developer Studio for debugging Class mediators.
...