Use of constants in JConsole plugin.
Use Closer.
Add more type safety.