JSONObj obj = new JSONObj();
obj.put("name", options.name());
JSONObj meta = obj.putObject("metadata");
try {
GeoServerInfo info = new GeoServerInfo(catalog.getResourceLoader());
GeoServerInfo.BuildInfo suiteInfo = info.suite();
meta.putObject("suite").put("version", suiteInfo.version()).put("revision", suiteInfo.revision());
GeoServerInfo.BuildInfo gsInfo = info.geoserver();
meta.putObject("geoserver").put("version", suiteInfo.version()).put("revision", suiteInfo.revision());
} catch (Exception e) {
throw new IOException(e);
}