// FIXME: This is BAD! Accessors SHOULD NOT change the behavior of the object.
// [dennisl; 2013-07-30] This was fixed in Maven 2.0.8
artifact.isSnapshot();
RegexBasedInterpolator interpolator = new RegexBasedInterpolator( "\\@\\{(", ")?([^}]+)\\}@" );
interpolator.addValueSource( new ObjectBasedValueSource( artifact ) );
interpolator.addValueSource( new ObjectBasedValueSource( artifact.getArtifactHandler() ) );
// Support for special expressions, like @{dashClassifier?}@, see MWAR-212
interpolator.addValueSource( new DashClassifierValueSource( artifact.getClassifier() ) );
value = interpolator.interpolate( value, "__artifact" );