assertNumberOfAttributeValuesValid( attrs );
    public void add( NextInterceptor next, LdapDN normName, Attributes attrs ) throws NamingException    {        AttributeTypeRegistry atRegistry = this.globalRegistries.getAttributeTypeRegistry();        NamingEnumeration attrEnum = attrs.getIDs();        while ( attrEnum.hasMoreElements() )        {            String name = ( String ) attrEnum.nextElement();                        // ---------------------------------------------------------------            // make sure all attributes are valid schema defined attributes            // ---------------------------------------------------------------            if ( !atRegistry.hasAttributeType( name ) )            {                throw new LdapInvalidAttributeIdentifierException( name + " not found in attribute registry!" );            }        }        alterObjectClasses( attrs.get( "objectClass" ), this.globalRegistries.getObjectClassRegistry() );        assertRequiredAttributesPresent( attrs );        next.add(normName, attrs );    }