if ( StringUtil.isBlank( (String) value ) && defn.isStructureMember( ) ) throw new PropertyValueException( value,
String stringValue = StringUtil.trimString( (String) value ) ; if ( stringValue == null ) { if ( defn.isStructureMember( ) ) throw new PropertyValueException( value, PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE, NAME_TYPE );  return null; }  Matcher matcher = pattern.matcher( stringValue ); if ( !matcher.matches( ) ) throw new PropertyValueException( stringValue,
	public Object validateValue( Module module, PropertyDefn defn,			Object value ) throws PropertyValueException	{		assert defn != null;		if ( value == null )		{			if ( defn.isStructureMember( ) )				throw new PropertyValueException( value,						PropertyValueException.DESIGN_EXCEPTION_VALUE_REQUIRED,						NAME_TYPE );			return null;		}		if ( value instanceof String )		{			if ( StringUtil.isBlank( (String) value )					&& defn.isStructureMember( ) )				throw new PropertyValueException( value,						PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE,						NAME_TYPE );			return StringUtil.trimString( (String) value );		}		throw new PropertyValueException( value,				PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE,				NAME_TYPE );	}