try {
if ( expander == null ) {
expander = new DefaultExpander();
}
reader = resource.getReader();
String str = expander.expand( reader );
if ( expander.hasErrors() ) {
for (ExpanderException error : expander.getErrors()) {
error.setResource( resource );
this.results.add( error );
}