// Vector used in conjunction with a for loop.
//for (int i = 0; i < templatePaths.size(); i++)
for (int i = 0; i < pathsToProcess; i++)
{
configuration.addProperty(Velocity.FILE_RESOURCE_LOADER_PATH,
TurbineServlet.getRealPath((String) templatePaths.get(i)));
}
try
{