Template generator and resource repository framework for Java