InputStream template = this.getClass().getClassLoader().getResourceAsStream( templName);
ClassLoader cl = this.getClass().getClassLoader(); if(cl == null) { cl = ClassLoader.getSystemClassLoader(); }  InputStream template = cl.getResourceAsStream(templName);
	public boolean processTemplates() throws BuildException {		Iterator it = fileIterator();		boolean returnValue = false;		try {			while (it.hasNext()) {				String targetName = (String) it.next();				String templName = templateForTarget(targetName);				FilterSetCollection filters = filtersForTarget(targetName);				InputStream template =					this.getClass().getClassLoader().getResourceAsStream(						templName);				File target = new File(targetName);				if (copyFile(template, target, filters))					returnValue = true;			}		} catch (IOException ioex) {			throw new BuildException("Error doing project formatting.", ioex);		} finally {			it = null;		}		return returnValue;	}