}
if (propertyDefinition instanceof PropertyDefinitionSimple) {
PropertyDefinitionSimple propertyDefinitionSimple = (PropertyDefinitionSimple) propertyDefinition;
if (propertyDefinitionSimple.getType() == PropertySimpleType.PASSWORD) {
PropertySimple propertySimple = parentPropertyMap.getSimple(propertyDefinition.getName());
propertySimple.mask();
}
}
// If the property is a Map, recurse into it and mask its child properties.
else if (propertyDefinition instanceof PropertyDefinitionMap) {
PropertyMap propertyMap = parentPropertyMap.getMap(propertyDefinition.getName());