renamed and generalized DEMO_NET to createAntConnection so it can be used as a helper class.