code: public static Page getCurrentPage()
  	{
  		final IRequestHandler requestHandler = RequestCycle.get().getActiveRequestHandler();
  		final Page page = getPage(requestHandler);
  		if (page != null)
  		{
  			return page;
  		}
  		if (requestHandler instanceof RequestSettingRequestHandler)
  		{
  			final RequestSettingRequestHandler requestSettingRequestHandler = (RequestSettingRequestHandler)requestHandler;
  			return getPage(requestSettingRequestHandler.getDelegateHandler());
  		}
  		return null;
  	}
docs: Gets the current page.
  
  @return the current page