Common Monitor class for macro and jython