if ( propDefn.getTypeCode( ) != PropertyType.LIST_TYPE )
if ( propDefn.getTypeCode( ) != IPropertyType.LIST_TYPE )
	protected void doSetProperty( PropertyDefn propDefn, Object valueToSet )	{		assert valueToSet != null;		if ( propDefn.getTypeCode( ) != PropertyType.LIST_TYPE )		{			DesignParserException e = new DesignParserException(					DesignParserException.DESIGN_EXCEPTION_WRONG_SIMPLE_LIST_TYPE );			handler.getErrorHandler( ).semanticError( e );			valid = false;			return;		}		// Validate the value.		assert valueToSet instanceof List;		List valueList = new ArrayList( );		try		{			for ( int i = 0; i < ( (List) valueToSet ).size( ); i++ )			{				String item = (String) ( (List) valueToSet ).get( i );				PropertyType type = propDefn.getSubType( );				Object propValue = type.validateXml( handler.getModule( ),						propDefn, item );				if ( propValue != null )					valueList.add( i, propValue );			}		}		catch ( PropertyValueException ex )		{			ex.setElement( element );			ex.setPropertyName( propDefn.getName( ) );			handlePropertyValueException( ex );			valid = false;			return;		}		if ( !valueList.isEmpty( )				&& !StyledElement.STYLE_PROP.equals( propDefn.getName( ) ) )			element.setProperty( propDefn, valueList );	}