code: private RemoteService getService(NodeEngineImpl nodeEngine, String serviceName) {
          try {
              return nodeEngine.getService(serviceName);
          } catch (HazelcastException e) {
              if (!nodeEngine.isRunning()) {
                  throw new HazelcastInstanceNotActiveException(e.getMessage());
              } else {
                  throw e;
              }
          }
      }
docs: Returns the service for the given {@code serviceName} or throws an
  exception. This method never returns {@code null}.
  
  @param nodeEngine  the node engine
  @param serviceName the remote service name
  @return the service instance
  @throws HazelcastException                  if there is no service with the given name
  @throws HazelcastInstanceNotActiveException if this instance is shutting down