checkOidIsUnique( entry );
// Build the new Syntax from the given entry
String schemaName = getSchemaName( dn );
LdapSyntax syntax = factory.getSyntax( schemaManager, entry, schemaManager.getRegistries(), schemaName );
// At this point, the constructed Syntax has not been checked against the
// existing Registries. It may be broken (missing SUP, or such), it will be checked
// there, if the schema and the Syntax are both enabled.
Schema schema = schemaManager.getLoadedSchema( schemaName );
if ( schema.isEnabled() && syntax.isEnabled() )
{
if ( schemaManager.add( syntax ) )
{
LOG.debug( "Added {} into the enabled schema {}", dn.getName(), schemaName );
}