// finalize the building of the RegRequest
final RegistrationRequestV4 regRequest = regRequestBuilder.build();
// Send frame.
LOG.info("Sending resources info\n" + regRequest.toString());
frameSender.sendFrame(FrameInfo.Type.REGISTRATION, regRequest.toByteString());
// store the resource keys
sdcKeysManager.storeSecretKeys(regRequest.getResourceKeyList());
} catch (IOException e) {
throw new RegistrationException(e);