{
Constructor<?> decorator = clazz.getConstructor(_DECORATOR_SIGNATURE);
ServletContext context = getServletContext();
File tempdir = (File)
context.getAttribute("javax.servlet.context.tempdir");
ResourceLoader delegate = new DirectoryResourceLoader(tempdir);
loader = (ResourceLoader)
decorator.newInstance(new Object[]{delegate});
}
catch (InvocationTargetException e)
{