// Grab the currently selected node and find the closest parent resource
// in the hierarchy and store it away in the conversation.
// We can grab it later to tell the ResourceManager what resource
// to use as parent when creating this new resource.
JONTreeNode currentNode = navigationAction.getSelectedNode();
ancestorResource = currentNode.getClosestResource();
serviceType = configurationManager.getResourceType(selectedResourceTypeName);
Map<String, ConfigurationTemplate> templates = serviceType.getResourceConfigurationDefinition().getTemplates();
Configuration originalTemplate = templates.get(selectedTemplateName).getConfiguration();