FYI the license in the file was intentionally changed from AGPL to Apache, so the above changes should not be applied.