list.add( new SemanticError( targetElement, new String[]{groupName}, SemanticError.DESIGN_EXCEPTION_DUPLICATE_GROUP_NAME ) );
list.add( new NameException( targetElement, groupName, NameException.DESIGN_EXCEPTION_DUPLICATE ) );
	public List validateForRenamingGroup( ListingHandle element,			GroupHandle group, String groupName )	{		if ( group.getName( ) == groupName				|| ( groupName != null && groupName.equals( group.getName( ) ) ) )		{			return Collections.EMPTY_LIST;		}		ListingElement targetElement = getListingElement( element				.getModule( ), (ListingElement) element.getElement( ) );		if ( targetElement == null )			return Collections.EMPTY_LIST;		// Collect all group name in this element.		List groupList = getGroupsWithContents( element.getModule( ),				targetElement );		List list = new ArrayList( );		// Check whether the given group name is in the group name list.		if ( isDuplicateGroupName( element.getModule( ), groupList, groupName ) )		{			list.add( new SemanticError( targetElement,					new String[]{groupName},					SemanticError.DESIGN_EXCEPTION_DUPLICATE_GROUP_NAME ) );			return list;		}		return list;	}