{
throw new IllegalStateException(
"Configuration has already been read.");
}
unitConfigurations = new ArrayList<UnitConfiguration>();
Loglevel oldLoglevel = Loglevel.getCurrentLoglevel();
for (UnitDescriptor unitDescriptor : unitDescriptors)
{
if (unitDescriptor.getLoglevel() != null)
{
unitDescriptor.getLoglevel().apply();
}
else
{
oldLoglevel.apply();
}
UnitConfigurationReader configurationReader
= new UnitConfigurationReader();
UnitConfiguration unitConfiguration