if (authenticator.isAuthenticated(httpServletRequest)) {
// Allow request to flow
filterChain.doFilter(servletRequest, servletResponse);
} else {
try {
if (!authenticator.authenticate(httpServletRequest)) {
//sendUnauthorisedError(servletResponse, "Unauthorised : Provided credentials are not valid.");
populateUnauthorisedData(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
} else {
// Allow request to flow
filterChain.doFilter(servletRequest, servletResponse);