Fix ClassCastException when agent is discovering an EAP domain: SWITCHYA...

...RD-1798

Fix for SWITCHYARD-1798, ClassCastException during discovery of an EAP domain.