 ; limitations under the License.
  
 (ns alfresco.behave
-  (:require [alfresco.core  :as c]
+  (:require [clojure.string :as s]
+            [alfresco.core  :as c]
             [alfresco.model :as m])
   (:import [org.alfresco.repo.policy JavaBehaviour
-                                     Behaviour$NotificationFrequency]
-           [org.alfresco.repo.node NodeServicePolicies$OnCreateNodePolicy
-                                   NodeServicePolicies$OnAddAspectPolicy]))
+                                     Behaviour$NotificationFrequency]))
 
 ;; no static String to use here, unfortunately
 (defn policy-component
   []
   (c/get-bean "policyComponent"))
 
+(comment
 (defn- bind-class-behaviour!
   [policy-qname binding-type-qname behaviour]
   (.bindClassBehaviour (policy-component)

                       (m/qname binding-type-qname)
                       behaviour)
  nil)

;####TODO: consider adding 3-arity version that receives a notification frequency (perhaps as a keyword?)
(defn on-add-aspect!
  "Registers the given function f as the handler for the onAddAspect policy of the given QName.
   The function f must accept 2 parameters:

                          "onAddAspect"
                          Behaviour$NotificationFrequency/TRANSACTION_COMMIT)]
    (bind-class-behaviour! NodeServicePolicies$OnAddAspectPolicy/QNAME qname b)))
)

;####TODO: consider adding 3-arity version that receives a notification frequency (perhaps as a keyword?)
(comment
(defn on-create-node!
  "Registers the given function f as the handler for the onCreateNode policy of the given QName.
   The function f must accept 1 parameter:
