PeerBuilderNAT builder = new PeerBuilderNAT(peer).peerMapUpdateInterval(PEER_MAP_UPDATE_INTERVAL_S)
.relays(relayAddresses).relayType(RELAY_TYPE);
if (RELAY_TYPE == RelayType.ANDROID) {
GCMServerCredentials gcmCredentials = new GCMServerCredentials().senderAuthenticationKey(gcmKey)
.senderId(gcmSenderId).registrationId(GCM_REGISTRATION_ID);
builder.gcmServerCredentials(gcmCredentials);
}
PeerNAT peerNat = builder.start();
FutureRelayNAT futureRelayNAT = peerNat.startRelay(relays.get(0).peer().peerAddress()).awaitUninterruptibly();
if (!futureRelayNAT.isSuccess()) {