remoteIP = request.getRemoteAddr();
}
//Search for the given end point
PublishingEndPointAPI endpointAPI = APILocator.getPublisherEndPointAPI();
PublishingEndPoint requesterEndPoint = endpointAPI.findEnabledSendingEndPointByAddress( remoteIP );
//Verify the authentication token
String auth_token = PublicEncryptionFactory.decryptString( auth_token_enc );
if ( !BundlePublisherResource.isValidToken( auth_token, remoteIP, requesterEndPoint ) || !UtilMethods.isSet( requestId ) ) {
return Response.status( HttpStatus.SC_UNAUTHORIZED ).build();