 
 	/**
      *  Subscribes to the remote destination.
-	 *  
-	 *  @param clientId The client id to subscribe with. Use null for non-durable Consumers. If the subscription is durable, a consistent 
+	 *
+	 *  @param clientId The client id to subscribe with. Use null for non-durable Consumers. If the subscription is durable, a consistent
 	 *                  value must be supplied every time the Consumer subscribes in order
 	 *                  to reconnect to the correct durable subscription in the remote destination.
-	 *      
+	 *
 	 *  @throws mx.messaging.errors.InvalidDestinationError If no destination is set.
 	 */
 	public function subscribe(clientId:String = null):void
 	{
         // Set a flag to determine whether the passed clientId differs from the
         // current value and should be assigned.
-        var resetClientId:Boolean = ((clientId != null) && 
+        var resetClientId:Boolean = ((clientId != null) &&
                                 (super.clientId != clientId)) ? true : false;
-        
+
         if (subscribed && resetClientId)
         {
             // We're already subscribed, but we need to resubscribe under
             // the new clientId.
             unsubscribe();
         }
-            
+
         // Make sure any resubscribe timer is stopped.
         stopResubscribeTimer();
-           
+
         _shouldBeSubscribed = true;
         if (resetClientId)
             super.setClientId(clientId);
         if (Log.isInfo())
             _log.info("'{0}' {1} subscribe.", id, _agentType);
         _subscribeMsg = buildSubscribeMessage();
-            
+
         internalSend(_subscribeMsg);
 	}
 
 	/**
      *  Unsubscribes from the remote destination. In the case of durable JMS
      *  subscriptions, this will destroy the durable subscription on the JMS server.
-     * 
+     *
      *  @param preserveDurable - when true, durable JMS subscriptions are not destroyed
 	 * 		allowing consumers to later resubscribe and receive missed messages
 	 */

                unsubscribe();
                resetSubscription = true;
            }
                
            super.destination = value;
            
            if (resetSubscription)
                subscribe();
        }        
	}

	//----------------------------------
	//  resubscribeAttempts
	//----------------------------------	

    /**
     *  @private

    //--------------------------------------------------------------------------
    //
    // Internal Methods
    //
    //--------------------------------------------------------------------------

    /**
	 *  @private
	 *  Consumers subscribe for messages from a destination and this is the handler
	 *  method that is invoked when a message for this Consumer is pushed or polled
	 *  from the server.
	 *
	 *  @param event The MessageEvent.
	 */
	mx_internal function messageHandler(event:MessageEvent):void
