// Get the attributeTypes attribute from the entry.
LinkedList<Modification> mods = new LinkedList<Modification>();
//parse the syntaxes first because attributes rely on these.
LDAPSyntaxDescriptionSyntax ldapSyntax;
try
{
ldapSyntax = (LDAPSyntaxDescriptionSyntax) schema.getSyntax(
SYNTAX_LDAP_SYNTAX_OID);
if (ldapSyntax == null)
{
ldapSyntax = new LDAPSyntaxDescriptionSyntax();
ldapSyntax.initializeSyntax(null);
}
}
catch (Exception e)
{
if (debugEnabled())
{
TRACER.debugCaught(DebugLogLevel.ERROR, e);
}
ldapSyntax = new LDAPSyntaxDescriptionSyntax();
ldapSyntax.initializeSyntax(null);
}
AttributeType ldapSyntaxAttrType =
schema.getAttributeType(ATTR_LDAP_SYNTAXES_LC);
if (ldapSyntaxAttrType == null)