// We already have an Ava. We have to put it in the HashMap
// before adding a new one.
// Check that the first AVA is not for the same attribute
if ( avaType.equals( normalizedType ) )
{
throw new LdapInvalidDnException( "Invalid RDN: the " + normalizedType
+ " is already present in the RDN" );
}
// First, create the HashMap,
avas = new ArrayList<Ava>();
// and store the existing Ava into it.
avas.add( ava );
avaTypes = new MultiValueMap();
avaTypes.put( avaType, ava );
this.ava = null;
// Now, fall down to the commmon case
// NO BREAK !!!
default:
// Check that the AT is not already present
if ( avaTypes.containsKey( normalizedType ) )
{
throw new LdapInvalidDnException( "Invalid RDN: the " + normalizedType
+ " is already present in the RDN" );
}
// add a new Ava
avas.add( value );