* the provider of the page class/instance and its parameters
* @return the html rendered by a page
*/
public static CharSequence renderPage(final PageProvider pageProvider)
{
Application application = Application.get();
RequestCycle originalRequestCycle = RequestCycle.get();
BufferedWebResponse tempResponse = new BufferedWebResponse(null);
RequestCycle tempRequestCycle = application.createRequestCycle(originalRequestCycle.getRequest(), tempResponse);
try
{
ThreadContext.setRequestCycle(tempRequestCycle);
pageProvider.getPageInstance().renderPage();