anchor.diff:  
  -WLHOME='<%= @weblogic_home_dir %>'
  -DOMAIN_PATH='<%= @domain_dir %>'
  +WLHOME      ='<%= @weblogic_home_dir %>'
  +DOMAIN_PATH ='<%= @domain_dir %>'
   
   bpmEnabled     = <%= @bpm_enabled %>
   bamEnabled     = <%= @bam_enabled %>
  
positive.code: updateDomain()
  dumpStack()
  
  if bamEnabled == true:
      print "to do fix BAM foreign jndi"
      cd('/')
      delete('BAMForeignJndiProvider','ForeignJNDIProvider')
      delete('BPMForeignJndiProvider','ForeignJNDIProvider')
  
  if soaEnabled == true:
      print "fix SOA"
  
negative.code: BAMClusterName = '<%= @bam_cluster_name %>'
  OSBClusterName = '<%= @osb_cluster_name %>'
  Admin          = '<%= @adminserver_name %>'
  
  if   bamEnabled == true and soaEnabled == true and osbEnabled == true:
      AllClusters = '<%= @soa_cluster_name %>,<%= @osb_cluster_name %>,<%= @bam_cluster_name %>'
  elif bamEnabled == true and soaEnabled == true and osbEnabled == false:
      AllClusters = '<%= @soa_cluster_name %>,<%= @bam_cluster_name %>'
  elif bamEnabled == false and soaEnabled == true and osbEnabled == true:
      AllClusters = '<%= @soa_cluster_name %>,<%= @osb_cluster_name %>'
  elif bamEnabled == false and soaEnabled == true and osbEnabled == false:
      AllClusters = '<%= @soa_cluster_name %>'
  elif bamEnabled == false and soaEnabled == false and osbEnabled == true:
      AllClusters = '<%= @osb_cluster_name %>'
  
  def getFirstClusterServer(cluster):
      s = ls('/Server')
  