Rename the WindowState#set method to WindowState#encode
Change the WindowState#createRender from public to private