@Override
	public JsonObject getJSON() {
		JsonObjectBuilder templatesObject = Json.createObjectBuilder();

		ObservableList<AsciidocTemplateFx> templates = getTemplates();

		for (AsciidocTemplateFx template : templates) {
			String key = template.getName();
			String location = template.getLocation();
			String description = template.getDescription();

			JsonObjectBuilder locDescObj = Json.createObjectBuilder();
			locDescObj.add("location", location);
			if (Objects.nonNull(description)) {
				locDescObj.add("description", description);
			}

			if (Objects.nonNull(key) || Objects.nonNull(location)) {
				templatesObject.add(key, locDescObj);
			}
		}

		JsonObjectBuilder objectBuilder = Json.createObjectBuilder();

		objectBuilder.add("templates", templatesObject);

		return objectBuilder.build();
	}
Handles the config page for the Asciidoc Templates.
src/main/java/com/kodedu/config/templates/TemplatesConfigBean.java