String (String ref) { if ("#".equals(ref)) { return null; } String nameFromRef; if (!contains(ref, "#")) { nameFromRef = Jsonschema2Pojo.getNodeName(ref, ruleFactory.getGenerationConfig()); } else { String[] nameParts = split(ref, "/\\#"); nameFromRef = nameParts[nameParts.length - 1]; } return URLDecoder.decode(nameFromRef, StandardCharsets.UTF_8); }