private boolean renderOutput(Node node,InternalContextAdapter context,Writer writer) throws IOException, MethodInvocationException, ResourceNotFoundException {
  String arg="";
  if (node == null) {
    rsvc.error("#include() error :  null argument");
    return false;
  }
  Object value=node.value(context);
  if (value == null) {
    rsvc.error("#include() error :  null argument");
    return false;
  }
  arg=value.toString();
  Resource resource=null;
  try {
    resource=rsvc.getContent(arg,getInputEncoding(context));
  }
 catch (  ResourceNotFoundException rnfe) {
    rsvc.error("#include(): cannot find resource '" + arg + "', called from template "+ context.getCurrentTemplateName()+ " at ("+ getLine()+ ", "+ getColumn()+ ")");
    throw rnfe;
  }
catch (  Exception e) {
    rsvc.error("#include(): arg = '" + arg + "', called from template "+ context.getCurrentTemplateName()+ " at ("+ getLine()+ ", "+ getColumn()+ ") : "+ e);
  }
  if (resource == null)   return false;
  writer.write((String)resource.getData());
  return true;
}

private boolean renderOutput ( Node node , InternalContextAdapter context , Writer writer ) throws IOException , MethodInvocationException , ResourceNotFoundException { String arg = "" ; if ( node == null ) { rsvc . error ( "#include() error :  null argument" ) ; return false ; } Object value = node . value ( context ) ; if ( value == null ) { rsvc . error ( "#include() error :  null argument" ) ; return false ; } arg = value . toString ( ) ; Resource resource = null ; try { resource = rsvc . getContent ( arg , getInputEncoding ( context ) ) ; } catch ( ResourceNotFoundException rnfe ) { rsvc . error ( "#include(): cannot find resource '" + arg + "', called from template " + context . getCurrentTemplateName ( ) + " at (" + getLine ( ) + ", " + getColumn ( ) + ")" ) ; throw rnfe ; } catch ( Exception e ) { rsvc . error ( "#include(): arg = '" + arg + "', called from template " + context . getCurrentTemplateName ( ) + " at (" + getLine ( ) + ", " + getColumn ( ) + ") : " + e ) ; } if ( resource == null ) return false ; writer . write ( ( String ) resource . getData ( ) ) ; return true ; }
does the actual rendering of the included file
