Thanks for the responseHow to use the session and authenicate the current user is admin or whether the user belong to administrator group? Because using the below code , it is giving NULL POINTER exceptionResourceResolver resourceResolver = resourceFactory.getAdministrativeResourceResolver(null); ...