Replace refences for Site.current. Now the XML configuration file its used.