SWITCHYARD-1798 Fix ClassCastException when agent is discovering an EAP domain