{
try
{
Vector postProcessors = new Vector();
Configuration config = Configuration.getInstance();
String destination = config.getValueOptional(
Constants.CHAPTER_SYSTEM, source.getName(),
"PostProcessor.System");
if (destination != null)
{
String configModus = config.getValueOptional(
Constants.CHAPTER_SYSTEM, source.getName(),
"PostProcessor.Modus");
if (configModus == null)
{
configModus = Constants.POSTPROCESSING_PERSYSTEM;
} // if (configModus == null)
if (configModus.equals(modus))
{
Object[] postProcessor =
{
destination,
Boolean.valueOf(config.getValueAsBoolean(
Constants.CHAPTER_SYSTEM, source.getName(),
"PostProcessor.Asynchronous"))};
postProcessors.add(postProcessor);
} // if (configModus.equals(modus))
} // if (destination != null) - a single postprocessor
else
{ // Perhaps several postprocessors
destination = config.getValueOptional(Constants.CHAPTER_SYSTEM,
source.getName(), "PostProcessor1.System");
for (int i = 1; destination != null; i++)
{ // Loop over postprocessors
String configModus = config.getValueOptional(
Constants.CHAPTER_SYSTEM, source.getName(),
"PostProcessor" + i + ".Modus");
if (configModus == null)
{
configModus = Constants.POSTPROCESSING_PERSYSTEM;
} // if (configModus == null)
if (configModus.equals(modus))
{
Object[] postProcessor =
{
destination,
Boolean.valueOf(config.getValueAsBoolean(
Constants.CHAPTER_SYSTEM, source
.getName(), "PostProcessor" + i
+ ".Asynchronous"))};
postProcessors.add(postProcessor);
} // if (configModus.equals(modus))
destination = config.getValueOptional(
Constants.CHAPTER_SYSTEM, source.getName(),
"PostProcessor" + (i + 1) + ".System");
} // for (int i=1; destination!=null; i++)
} // else (destination != null)
for (int i = 0; i < postProcessors.size(); i++)
{
destination = (String) ((Object[]) postProcessors.get(i))[0];
PostProcessor postProc = new PostProcessor(new XBUSSystem(
destination, source.getAddresses(), config
.getValueAsBooleanOptional("System",
destination, "Broadcast")), callData);
if (((Boolean) ((Object[]) postProcessors.get(i))[1])
.booleanValue())
{