if ( role.equalsIgnoreCase( AUTONOUMOUS_AREA ) )
{
operational = ( Attribute ) entry.get( AUTONOUMOUS_AREA_SUBENTRY ).clone();
if ( operational == null )
{
operational = new LockableAttributeImpl( AUTONOUMOUS_AREA_SUBENTRY );
operational.add( newName.toString() );
}
else
{
operational.remove( oldName.toString() );
operational.add( newName.toString() );
}
}
else if ( role.equalsIgnoreCase( AC_AREA ) || role.equalsIgnoreCase( AC_INNERAREA ) )
{
operational = ( Attribute ) entry.get( AC_SUBENTRY ).clone();
if ( operational == null )
{
operational = new LockableAttributeImpl( AC_SUBENTRY );
operational.add( newName.toString() );
}
else
{
operational.remove( oldName.toString() );
operational.add( newName.toString() );
}
}
else if ( role.equalsIgnoreCase( SCHEMA_AREA ) )
{
operational = ( Attribute ) entry.get( SCHEMA_AREA_SUBENTRY ).clone();
if ( operational == null )
{
operational = new LockableAttributeImpl( SCHEMA_AREA_SUBENTRY );
operational.add( newName.toString() );
}
else
{
operational.remove( oldName.toString() );
operational.add( newName.toString() );
}
}
else if ( role.equalsIgnoreCase( COLLECTIVE_AREA ) ||
role.equalsIgnoreCase( COLLECTIVE_INNERAREA ) )
{
operational = ( Attribute ) entry.get( COLLECTIVE_ATTRIBUTE_SUBENTRIES ).clone();
if ( operational == null )
{
operational = new LockableAttributeImpl( COLLECTIVE_ATTRIBUTE_SUBENTRIES );
operational.add( newName.toString() );
}
else
{
operational.remove( oldName.toString() );