public void saveAvatar(UIAvatarUploadContent uiAvatarUploadContent, Space space) throws Exception { SpaceService spaceService = getSpaceService(); space.setAvatarAttachment(uiAvatarUploadContent.getAvatarAttachment()); spaceService.updateSpace(space); space.setEditor(Utils.getViewerRemoteId()); spaceService.updateSpaceAvatar(space); }