class ApiHandlerHelpers {

    public static boolean validateAccessToken(HttpRequest request) {
    	LoggingService.logDebug(MODULE_NAME, "Validate access token in request : " + request);
        final String validAccessToken = fetchAccessToken();
        String accessToken;
		try {
			accessToken = request.headers().get(HttpHeaderNames.AUTHORIZATION, "");
			return !TextUtils.isEmpty(accessToken) && accessToken.equalsIgnoreCase(validAccessToken);
		} catch (Exception e) {
			LoggingService.logError(MODULE_NAME, "Error validating Access Token",
					new AgentUserException(e.getMessage(), e));
		}
		return false;
        
    }

}