final boolean publicVisible = (Boolean) properties.get("publicVisible");
final boolean authVisible = (Boolean) properties.get("authVisible");
try {
Importer pageImporter = new Importer(securityContext, code, address, name, timeout, publicVisible, authVisible);
boolean parseOk = pageImporter.parse();
if (parseOk) {
logger.log(Level.INFO, "Sucessfully parsed {0}", address);
getWebSocket().send(MessageBuilder.status().code(200).message("Sucessfully parsed address " + address).build(), true);
String pageId = pageImporter.readPage().getUuid();
Map<String, Object> resultData = new HashMap();
if (pageId != null) {
resultData.put("id", pageId);
getWebSocket().send(MessageBuilder.status().code(200).message("Sucessfully created page " + name).data(resultData).build(), true);
// try to import graph gist source code from HTML comment
pageImporter.importDataComments();
} else {
getWebSocket().send(MessageBuilder.status().code(400).message("Error while creating page " + name).data(resultData).build(), true);
}