final DateBean bean = new DateBean();
interpolator.addValueSource( new ObjectBasedValueSource( bean ) );
reader = ReaderFactory.newXmlReader( docDescriptor );
final String interpolatedDoc = interpolator.interpolate( IOUtil.toString( reader ) );
if ( log != null && log.isDebugEnabled() )
{
log.debug( "Interpolated document descriptor ("
+ docDescriptor.getAbsolutePath() + ")\n" + interpolatedDoc );