}
if (tmpl == null) {
tmpl = new ServiceTemplate();
tmpl.setName(_templateName);
tmpl.setUuid(_templateId);
ServiceTemplateType props = new ServiceTemplateType("in-network", null, _templateUrl, false, null);
tmpl.setProperties(props);
try {
ApiConnector api = controller.getApiAccessor();
api.create(tmpl);
} catch (IOException ex) {