code: public boolean createSharedObject(IScope scope, String name, boolean persistent) {
          boolean added = hasSharedObject(scope, name);
          if (!added) {
              log.debug("Attempting to add shared object: {} to {}", name, scope.getName());
              added = scope.addChildScope(new SharedObjectScope(scope, name, persistent, getStore(scope, persistent)));
              if (!added) {
                  added = hasSharedObject(scope, name);
                  log.debug("Add failed on create, shared object already exists: {}", added);
              }
          } else {
              // the shared object already exists
              log.trace("Shared object ({}) already exists. Persistent: {}", name, persistent);
          }
          // added or already existing will be true
          return added;
      }
docs: {@inheritDoc}