* @param context request context
* @return publication request
* @throws Exception if creating publication request fails
*/
private PublicationRequest createPublicationRequest(RequestContext context) throws Exception {
return new PublicationRequest(context, EndPoint.extract(context), getCredentialProvider(), getParameter("referer"));
}