anchor.diff:  updateDomain()
   dumpStack()
   
  -if bamEnabled == true:
  -    print "to do fix BAM foreign jndi"
  -    cd('/')
  -    delete('BAMForeignJndiProvider','ForeignJNDIProvider')
  -    delete('BPMForeignJndiProvider','ForeignJNDIProvider')
  +print "change Coherence"
  +if soaEnabled == true:
  +    cd('/')
  +    assign('Cluster',SOAClusterName,'CoherenceClusterSystemResource','defaultCoherenceCluster')
  +if osbEnabled == true:
  +    cd('/')
  +    assign('Cluster',OSBClusterName,'CoherenceClusterSystemResource','defaultCoherenceCluster')
  +if bamEnabled == true:
  +    cd('/')
  +    assign('Cluster',BAMClusterName,'CoherenceClusterSystemResource','defaultCoherenceCluster')
  +
  +cd('/')
  +cd('/CoherenceClusterSystemResource/defaultCoherenceCluster')
  +set('Target',AllClusters)
  +cd('CoherenceResource/defaultCoherenceCluster/CoherenceClusterParams/NO_NAME_0')
  +set('UnicastListenPort',9991) 
   
   if soaEnabled == true:
       print "fix SOA"
  
positive.code: BAMClusterName = '<%= @bam_cluster_name %>'
  OSBClusterName = '<%= @osb_cluster_name %>'
  Admin          = '<%= @adminserver_name %>'
  
  def getFirstClusterServer(cluster):
      s = ls('/Server')
  
negative.code:     delete('UMSAQJMSSystemResource','JMSSystemResource')
      createSAFAgents(OSBClusterName, 1)
  
  if bamEnabled == true:
      print "to do fix BAM foreign jndi"
      cd('/')
      cd('/ForeignJNDIProvider/BAMForeignJndiProvider')
      set('Target',SOAClusterName)
      cd('/ForeignJNDIProvider/BPMForeignJndiProvider')
      set('Target',BAMClusterName)
      
      print "re-create BAM JMS"
      cd('/')
      delete('BamCQServiceJmsSystemResource_bam_server1','JMSSystemResource')
      delete('BamServerJmsSystemResource'               ,'JMSSystemResource')
  
      delete('BamCQServiceJmsServer_bam_server1'   ,'JMSServer')
      delete('BamServerJmsServer_bam_server1'      ,'JMSServer')
  
      delete('BamCQServiceJmsFileStore_bam_server1','FileStore')
      delete('BamServerJmsFileStore_bam_server1'   ,'FileStore')
  
  
  
  print "last updateDomain"
  updateDomain()
  dumpStack()
  