int index = 0;
if(xfd.getIndicatorId() != null){
// we have to set the index (not using the default of 0)
index = Integer.parseInt(xfd.getIndicatorId());
}
IIndicatorBehaviorConfiguration psec = getConfiguration(xfd.getConfig());
LOG.debug("index for configured indicator identified as {} for configuration {}", index, this);
IBuildStatusIndicator ibsi = getBuildStatusIndicatorByServiceIndex(index);
// FIXME: incorporate a better configuration of indicators
// IProjectIndicator ipi = getProjectIndicator(xfd.getIndicatorId());
if(psec != null){
if(ibsi != null){
StatusAction sa = psec.evaluate(this);
if(sa != null) {
ibsi.indicate(sa);
}
} else {
LOG.info("no indicator found - I can't indicate anything without that one ");