if ( !targetDefn.isKindOf( target.getDefn( ) ) )
if ( !target.getDefn( ).isKindOf( targetDefn ) )
	private ElementRefValue validateStringValue( Module module,			ElementDefn targetDefn, PropertyDefn propDefn, String name )			throws PropertyValueException	{		name = StringUtil.trimString( name );		if ( name == null )			return null;		IModuleNameSpace elementResolver = module				.getModuleNameSpace( targetDefn.getNameSpaceID( ) );		ElementRefValue refValue = null;		// special case for theme property since it can be direcly referred.		refValue = elementResolver.resolve( name, propDefn );		assert refValue != null;		// Element is unresolved.		if ( !refValue.isResolved( ) )			return refValue;		DesignElement target = refValue.getElement( );		assert target != null;		// Check type.		if ( !targetDefn.isKindOf( target.getDefn( ) ) )			throw new PropertyValueException( target.getName( ),					PropertyValueException.DESIGN_EXCEPTION_WRONG_ELEMENT_TYPE,					PropertyType.ELEMENT_REF_TYPE );		// Resolved reference.		return refValue; // new ElementRefValue( target );	}