Refactored getConnectorAgent to accept parameters and moved to the upper base service class.