add sessionRegistry in ViewController to register nuxeoResource in the
portlet session