Class base = baseHandle.getClass( );  for ( int i = 1; i < list.size( ); i++ )
if(baseHandle!=null)
	private Object getMultiSelectedElement( )	{		List list = getElements( );		Object baseHandle = list.get( 0 );		Class base = baseHandle.getClass( );		for ( int i = 1; i < list.size( ); i++ )		{			Object obj = list.get( i );			if ( base.isInstance( obj ) )			{				continue;			}			// Ensure multi selected elements are instance of the "base" class.			while ( !base.isInstance( obj ) )			{				base = base.getSuperclass( );			}			continue;		}		return base;	}