refactor code -- remove orbmanager class from adplugin