Program: 115788
Project: 115788
Buggy source:
private void executeCoordinatorTasks() throws InvalidPolicyException {
  asTopologyReceiver=new AutoscalerTopologyEventReceiver();
  asTopologyReceiver.setExecutorService(executorService);
  asTopologyReceiver.execute();
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str");
  }
  autoscalerHealthStatEventReceiver=new AutoscalerHealthStatEventReceiver();
  autoscalerHealthStatEventReceiver.setExecutorService(executorService);
  autoscalerHealthStatEventReceiver.execute();
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str");
  }
  List<AutoscalePolicy> asPolicies=RegistryManager.getInstance().retrieveASPolicies();
  Iterator<AutoscalePolicy> asPolicyIterator=asPolicies.iterator();
  while (asPolicyIterator.hasNext()) {
    AutoscalePolicy asPolicy=asPolicyIterator.next();
    PolicyManager.getInstance().addASPolicyToInformationModel(asPolicy);
  }
  List<ApplicationPolicy> applicationPolicies=RegistryManager.getInstance().retrieveApplicationPolicies();
  Iterator<ApplicationPolicy> applicationPolicyIterator=applicationPolicies.iterator();
  while (applicationPolicyIterator.hasNext()) {
    ApplicationPolicy applicationPolicy=applicationPolicyIterator.next();
    PolicyManager.getInstance().addApplicationPolicyToInformationModel(applicationPolicy);
  }
  List<NetworkPartitionAlgorithmContext> networkPartitionAlgorithmContexts=RegistryManager.getInstance().retrieveNetworkPartitionAlgorithmContexts();
  Iterator<NetworkPartitionAlgorithmContext> networkPartitionAlgoCtxtIterator=networkPartitionAlgorithmContexts.iterator();
  while (networkPartitionAlgoCtxtIterator.hasNext()) {
    NetworkPartitionAlgorithmContext algorithmContext=networkPartitionAlgoCtxtIterator.next();
    AutoscalerContext.getInstance().addNetworkPartitionAlgorithmContext(algorithmContext);
  }
  ClusterStatusProcessorChain clusterStatusProcessorChain=new ClusterStatusProcessorChain();
  ServiceReferenceHolder.getInstance().setClusterStatusProcessorChain(clusterStatusProcessorChain);
  GroupStatusProcessorChain groupStatusProcessorChain=new GroupStatusProcessorChain();
  ServiceReferenceHolder.getInstance().setGroupStatusProcessorChain(groupStatusProcessorChain);
  if (log.isInfoEnabled()) {
    log.info("String_Node_Str");
  }
  ComponentStartUpSynchronizer componentStartUpSynchronizer=ServiceReferenceHolder.getInstance().getComponentStartUpSynchronizer();
  componentStartUpSynchronizer.addEventListener(new ComponentActivationEventListener(){
    @Override public void activated(    Component component){
      if (component == Component.StratosManager) {
        Runnable applicationSynchronizer=new ApplicationEventSynchronizer();
        scheduler.scheduleAtFixedRate(applicationSynchronizer,0,1,TimeUnit.MINUTES);
      }
    }
  }
);
}

Fixed version (ground truth):
private void executeCoordinatorTasks() throws InvalidPolicyException, InvalidDeploymentPolicyException {
  asTopologyReceiver=new AutoscalerTopologyEventReceiver();
  asTopologyReceiver.setExecutorService(executorService);
  asTopologyReceiver.execute();
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str");
  }
  autoscalerHealthStatEventReceiver=new AutoscalerHealthStatEventReceiver();
  autoscalerHealthStatEventReceiver.setExecutorService(executorService);
  autoscalerHealthStatEventReceiver.execute();
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str");
  }
  List<AutoscalePolicy> asPolicies=RegistryManager.getInstance().retrieveASPolicies();
  Iterator<AutoscalePolicy> asPolicyIterator=asPolicies.iterator();
  while (asPolicyIterator.hasNext()) {
    AutoscalePolicy asPolicy=asPolicyIterator.next();
    PolicyManager.getInstance().addASPolicyToInformationModel(asPolicy);
  }
  List<DeploymentPolicy> depPolicies=RegistryManager.getInstance().retrieveDeploymentPolicies();
  Iterator<DeploymentPolicy> depPolicyIterator=depPolicies.iterator();
  while (depPolicyIterator.hasNext()) {
    DeploymentPolicy depPolicy=depPolicyIterator.next();
    PolicyManager.getInstance().addDeploymentPolicyToInformationModel(depPolicy);
  }
  List<ApplicationPolicy> applicationPolicies=RegistryManager.getInstance().retrieveApplicationPolicies();
  Iterator<ApplicationPolicy> applicationPolicyIterator=applicationPolicies.iterator();
  while (applicationPolicyIterator.hasNext()) {
    ApplicationPolicy applicationPolicy=applicationPolicyIterator.next();
    PolicyManager.getInstance().addApplicationPolicyToInformationModel(applicationPolicy);
  }
  List<NetworkPartitionAlgorithmContext> networkPartitionAlgorithmContexts=RegistryManager.getInstance().retrieveNetworkPartitionAlgorithmContexts();
  Iterator<NetworkPartitionAlgorithmContext> networkPartitionAlgoCtxtIterator=networkPartitionAlgorithmContexts.iterator();
  while (networkPartitionAlgoCtxtIterator.hasNext()) {
    NetworkPartitionAlgorithmContext algorithmContext=networkPartitionAlgoCtxtIterator.next();
    AutoscalerContext.getInstance().addNetworkPartitionAlgorithmContext(algorithmContext);
  }
  ClusterStatusProcessorChain clusterStatusProcessorChain=new ClusterStatusProcessorChain();
  ServiceReferenceHolder.getInstance().setClusterStatusProcessorChain(clusterStatusProcessorChain);
  GroupStatusProcessorChain groupStatusProcessorChain=new GroupStatusProcessorChain();
  ServiceReferenceHolder.getInstance().setGroupStatusProcessorChain(groupStatusProcessorChain);
  if (log.isInfoEnabled()) {
    log.info("String_Node_Str");
  }
  ComponentStartUpSynchronizer componentStartUpSynchronizer=ServiceReferenceHolder.getInstance().getComponentStartUpSynchronizer();
  componentStartUpSynchronizer.addEventListener(new ComponentActivationEventListener(){
    @Override public void activated(    Component component){
      if (component == Component.StratosManager) {
        Runnable applicationSynchronizer=new ApplicationEventSynchronizer();
        scheduler.scheduleAtFixedRate(applicationSynchronizer,0,1,TimeUnit.MINUTES);
      }
    }
  }
);
}