@Override
public void updateEntitiesOnWorkspace(Workspace workspace, Iterable<Update> updates, User user) {
checkNotNull(workspace, "Workspace cannot be null");
if (!hasWritePermissions(workspace.getWorkspaceId(), user)) {
throw new LumifyAccessDeniedException("user " + user.getUserId() + " does not have write access to workspace " + workspace.getWorkspaceId(), user, workspace.getWorkspaceId());
}
Session session = sessionManager.getSession();
Transaction transaction = null;
try {