get the hcat client only when it is actually required and handle a case properly when a service does not get hcat clent