JType (RuleFactory ruleFactory, String defaultName, JsonNode parent, JClassContainer container) { var properties = new HashMap<String, JsonNode>(); properties.put("type", new TextNode(name)); return ruleFactory.getTypeRule().apply(defaultName, new ObjectNode(JsonNodeFactory.instance, properties) ,parent,container,null); }