}
// Pull out data from the discovery call
SystemInfo systemInfo = context.getSystemInformation();
String hostname = systemInfo.getHostname();
TomcatConfig tomcatConfig = parseTomcatConfig(catalinaBase);
tomcatConfig = applySystemProperties(tomcatConfig, commandLine);
// Create pieces necessary for the resource creation
String resourceVersion = determineVersion(catalinaHome, catalinaBase, systemInfo);
String productName = PRODUCT_NAME;
String productDescription = PRODUCT_DESCRIPTION + ((hostname == null) ? "" : (" (" + hostname + ")"));
String resourceName = productName + " ("
+ ((tomcatConfig.getAddress() == null) ? "" : (tomcatConfig.getAddress() + ":")) + tomcatConfig.getPort()
+ ")";
String resourceKey = catalinaBase;
Configuration pluginConfiguration = new Configuration();
populatePluginConfiguration(pluginConfiguration, catalinaHome, catalinaBase, commandLine, isWindows(context));