}
BaseRelayConnection connection = null;
switch (relayType) {
case OPENTCP:
connection = new OpenTCPRelayConnection(peerConnection, peer, config);
break;
case ANDROID:
connection = new AndroidRelayConnection(relayAddress, relayRPC, peer, config, credentials);
break;
default: