}
private static void fetchTasksByTagName(String tagName, Element rootElement, List<SkinConfigTask> tasks)
{
NodeList nodes = rootElement.getElementsByTagName(tagName);
GateinResource task;
for (int i = nodes.getLength() - 1; i >= 0; i--)
{
task = elemtToTask(tagName);
if (task != null)
{
task.binding((Element)nodes.item(i));
tasks.add((SkinConfigTask)task);
}
}
}