private BlobCrypterSecurityToken getBlobCrypterSecurityToken(RegionWidget regionWidget)
throws SecurityTokenException {
User user = userService.getAuthenticatedUser();
BlobCrypterSecurityToken securityToken = new BlobCrypterSecurityToken(blobCrypter, container, domain);
securityToken.setAppUrl(regionWidget.getWidget().getUrl());
securityToken.setModuleId(regionWidget.getId());
securityToken.setOwnerId(String.valueOf(regionWidget.getRegion().getPage().getOwner().getId()));
securityToken.setViewerId(String.valueOf(user.getId()));
securityToken.setTrustedJson("");
if (logger.isTraceEnabled()) {
logger.trace("Token created for regionWidget " + regionWidget.toString() + " and user " + user.toString());
}