anchor.diff:  soaEnabled     = <%= @soa_enabled %>
   osbEnabled     = <%= @osb_enabled %>
   
  +domain_name    = '<%= @domain_name %>'
   SOAClusterName = '<%= @soa_cluster_name %>'
   OSBClusterName = '<%= @osb_cluster_name %>'
   
  
positive.code:     print "Unexpected error:", sys.exc_info()[0]
      undo('true','y')
      stopEdit('y')
  
negative.code: try:
  
      if soaEnabled == true:
          cd('/SelfTuning/'+domain_name+'/WorkManagers/wm/SOAWorkManager')
          set('Targets', jarray.array([ObjectName('com.bea:Name='+SOAClusterName+',Type=Cluster')], ObjectName))
  
      if osbEnabled == true:
          cd('/SelfTuning/+domain_name+/WorkManagers/weblogic.wsee.mdb.DispatchPolicy')
          set('Targets', jarray.array([ObjectName('com.bea:Name='+OSBClusterName+',Type=Cluster')], ObjectName))
  
      save()
  