@Override
protected void addPropertiesSpecificToFeature() {
representation.mapPut("name", getObjectFeature().getName());
representation.mapPut("number", getObjectFeature().getNumber());
representation.mapPut("optional", getObjectFeature().isOptional());
final MaxLengthFacet maxLength = getObjectFeature().getFacet(MaxLengthFacet.class);
if (maxLength != null && !maxLength.isNoop()) {
representation.mapPut("maxLength", maxLength.value());
}
}