} catch (PersistenceException e) {
LOG.log(Level.WARNING, "Cannot fetch account data for robot id: " + getRobotId(), e);
}
if (account != null) {
setupOAuth(account.getId().getAddress(), account.getConsumerSecret(), rpcUrl);
Wavelet newWelcomeWavelet = newWave(getWaveDomain(), Sets.newHashSet(id.getAddress()));
if (welcomeWaveId != null) {
Wavelet templateWelcomeWavelet =
fetchWavelet(welcomeWaveId, WaveletId.of(getWaveDomain(), "conv+root"), rpcUrl);
RobotsUtil.copyBlipContents(templateWelcomeWavelet.getRootBlip(),
newWelcomeWavelet.getRootBlip());
} else {
appendLine(newWelcomeWavelet.getRootBlip(), "Welcome to " + getWaveDomain() + "!");
}
submit(newWelcomeWavelet, rpcUrl);