public String getMappedName(String ruleType, String name) {
MappingRule rule = rules.get(ruleType);
if (rule == null) {
if (parent == null) {
throw new MappingRuleNotFoundException("Failed to get mapping rule of \"" + ruleType + "\"");
} else {
return parent.getMappedName(ruleType, name);
}
}