try
{
List l = cfgbuf.peekConfigurationVar(var);
for (int j = 0, len = l == null ? 0 : l.size(); j < len; j++)
{
ConfigurationValue val = (ConfigurationValue) l.get(j);
List valArgs = val.getArgs();
for (int k = 0, size = valArgs == null ? 0 : valArgs.size(); k < size; k++)
{
this.addComponent((String) valArgs.get(k));
}
}
}
catch (ConfigurationException ex)
{
}
}
else if ("include-file".equals(var))
{
try
{
List l = cfgbuf.peekConfigurationVar(var);
for (int j = 0, len = l == null ? 0 : l.size(); j < len; j++)
{
ConfigurationValue val = (ConfigurationValue) l.get(j);
List valArgs = val.getArgs();
this.addArchiveFile((String) valArgs.get(0), new File((String) valArgs.get(1)));
}
}
catch (ConfigurationException ex)
{
}
}
else if ("include-namespaces".equals(var))
{
try
{
List l = cfgbuf.peekConfigurationVar(var);
for (int j = 0, len = l == null ? 0 : l.size(); j < len; j++)
{
ConfigurationValue val = (ConfigurationValue) l.get(j);
List valArgs = val.getArgs();
for (int k = 0, size = valArgs == null ? 0 : valArgs.size(); k < size; k++)
{
try
{
this.addComponent(new URI((String) valArgs.get(k)));
}
catch (URISyntaxException ex)
{
ex.printStackTrace();
}
}
}
}
catch (ConfigurationException ex)
{
}
}
else if ("include-resource-bundles".equals(var))
{
try
{
List l = cfgbuf.peekConfigurationVar(var);
for (int j = 0, len = l == null ? 0 : l.size(); j < len; j++)
{
ConfigurationValue val = (ConfigurationValue) l.get(j);
List valArgs = val.getArgs();
for (int k = 0, size = valArgs == null ? 0 : valArgs.size(); k < size; k++)
{
this.addResourceBundle((String) valArgs.get(k));
}
}
}
catch (ConfigurationException ex)
{
}
}
else if ("include-sources".equals(var))
{
try
{
List l = cfgbuf.peekConfigurationVar(var);
for (int j = 0, len = l == null ? 0 : l.size(); j < len; j++)
{
ConfigurationValue val = (ConfigurationValue) l.get(j);
List valArgs = val.getArgs();
for (int k = 0, size = valArgs == null ? 0 : valArgs.size(); k < size; k++)
{
this.addComponent(new File((String) valArgs.get(k)));
}
}