private void removePattern(String patternName) {
this.patternBase.removePattern(patternName);
}
private Templete newTemplate(String parentId, String templateName) {
Templete template = this.patternBase.addTemplete(templateName);
if (this.patternBase.containsPattern(parentId)) {
this.patternBase.getPattern(parentId).addChildTemplete(template);
template.setParentPattern(this.patternBase.getPattern(parentId));
} else {
this.patternBase.getTemplete(parentId).addChildTemplete(template);
template.setParentTemplete(this.patternBase.getTemplete(parentId));
}
return template;
}