log.debug("Loading " + key);
List<AssemblerFactory> facs = getFactoryGroup(type);
for (Iterator<AssemblerFactory> it = facs.iterator(); (assembler == null) && it.hasNext();)
{
AssemblerFactory fac = it.next();
try
{
assembler = fac.getAssembler(name);
}
catch (Exception e)
{
throw new TurbineException("Failed to load an assembler for "
+ name + " from the "
+ type + " factory "
+ fac.getClass().getName(), e);
}
if (isCaching && assembler != null)
{
assemblerCache.put(key, assembler);