}
// At this point, the constructed AttributeType 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 AttributeType are both enabled.
Schema schema = getLoadedSchema( schemaName );
if ( schema == null )
{
// The SchemaObject must be associated with an existing schema
String msg = I18n.err( I18n.ERR_11010, copy.getOid() );
LOG.info( msg );
Throwable error = new LdapProtocolErrorException( msg );
errors.add( error );
return false;
}
if ( schema.isEnabled() && copy.isEnabled() )
{
// As we may break the registries, work on a cloned registries
Registries clonedRegistries = null;
try