error("Metadata file does not exist at "+headerFile.getPath());
}
} else if ("RAND_KEY".equals(createMode)) {
if (! headerFile.exists()) {
FileDbRepository repo = new FileDbRepository(headerFile.getPath());
repo.initMeta();
byte[] accesskeyBytes = new byte[24];
new SecureRandom().nextBytes(accesskeyBytes);
String accesskey = Base64.encodeBytes(accesskeyBytes, Base64.URL_SAFE);
String code = "apiplugins.add(Packages.dovetaildb.api.Plugin({'wrapApiService':function(api, req){return req.getParameter(\"accesskey\")==\""+accesskey+"\" ? api : null}}))";
System.out.println();