modified ReferenceMonitor's createObject method