throw new BootstrapException(msg);
}
logger__.debug("Admin API account initialized (uuid=" + adminUUID +
", secret=" + abbreviate(adminSecret, 8) + ")");
// Create a new keypair for the default ADMIN level user.
final KeyPair adminKeyPair = new KeyPair(new HavaloUUID(adminUUID),
adminSecret, Arrays.asList(new UserRole[]{ADMIN}));
// Actually attempt to create a new Repository for the Admin user.
// This should work, if not, bail the whole app.
repoManager.createRepository(adminKeyPair.getKey(), adminKeyPair);
return repoManager;
} catch (RepositoryCreationException e) {
// Log in TRACE and continue silently. This is a normal case,
// when the admin repo has already been created on firstboot
// but Havalo is being re-started.