This code is dangerous! Do yourselves a favour and read the J2EE spec! You shouldn't be using static fields. What happens if this WebAppResourceLoader was used by a Servlet? What would happen if two threads were running through the servlet concurrently? The whole thing will fall over, thats what!