code: public Reader createResource(GeneratorContext context) {
  		ServletContext servletContext = context.getServletContext();
  		StringBuffer data = null;
  		String path = context.getPath();
  		if(ENGINE_KEY.equals(path)) {
  			data = buildEngineScript(readDWRScript(ENGINE_PATH),servletContext);
  		}
  		else if(DWR_LIBRARIES.containsKey(path)){
  			data = readDWRScript((String)DWR_LIBRARIES.get(path));
  		}
  		else if(ALL_INTERFACES_KEY.equals(path)) {
  			data = new StringBuffer(ENGINE_INIT);
  			data.append(getAllPublishedInterfaces(servletContext));
  		}
  		else {
  			data = new StringBuffer(ENGINE_INIT);
  			StringTokenizer tk = new StringTokenizer(path,"|");
  			while(tk.hasMoreTokens()) {
  				data.append(getInterfaceScript(tk.nextToken(),servletContext));
  			}
  		}
  		
  		return new StringReader(data.toString());
  	}
docs: /* (non-Javadoc)
  @see net.jawr.web.resource.bundle.generator.ResourceGenerator#createResource(java.lang.String, java.nio.charset.Charset)