private void addAttribute(ObjectClassStructureBuilder parent, String name, AttributeUse use,
AttributeCardinality cardinality) {
LdapStructureAttributeBuilder builder = new LdapStructureAttributeBuilder();
builder.setOid(new NumericOid("1.2.3.4.5"));
builder.setName(name);
builder.setSyntaxInfo(new AttributeSyntaxInfo() {
@Override
public AttributeDataType getDataType() {
return AttributeDataType.STRING;
}