"plication proxy (WAP). This feature is focused on browser and device based access with strong Active Directory Federation Services (AD FS) support. WAP isn't a complete replacement for all TMG/UAG scenarios but it does provide "secure application" publishing, allowing organizations to publish access to applications through a reverse-proxy integrating with AD FS for pre-authentication."
"<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
WebPartManager webPartManager = SPWebPartManager.GetCurrentWebPartManager(this.Page);
if (webPartManager != null && webPartManager.DisplayMode == SPWebPartManager.BrowseDisplayMode)