Revert "BS-10298, use the apiAccessor from the connector when needed"

This reverts commit b9cdc50e6ff0d684838f11b4a27090b23f4c272d.
Revert "BS-10298, Change the definition and the implementation of th Groovy"

This reverts commit 04371fd41e11881abe00a8a42b74991abf0bcfca.