clearer logic in loadEndpoint: only one of the three options can be used
Merge pull request #526 from virgo-agent-toolkit/songgao/fix_agent_endpoint_config_check

clearer logic in loadEndpoint: only one of the three options can be used