replaced by jlockmanager