public void showErrorMessage(SNode node, String message) {
   SNode inputNode = (node != null) ? node : getInputNode();
   SNodeReference tn = getTemplateNodeRef();
   SNodeReference rnr = getRuleNode();
   myGenerator
       .getLogger()
       .error(
           rnr == null ? tn : rnr,
           message,
           GeneratorUtil.describeIfExists(inputNode, "input node"),
           GeneratorUtil.describeIfExists(tn, "template node"));
 }
 private ProblemDescription[] getErrorDescriptions() {
   return new ProblemDescription[] {GeneratorUtil.describe(getInputNode(), "input node")};
 }