class ServiceCache {

  private final Map<String, Service> serviceCache;

  public ServiceCache() {
    serviceCache = new HashMap<>();
  }

  /**
   * Get the service from the cache. null if no service is found matching the name
   *
   * @param serviceName a string
   * @return {@link Service}
   */
  public Service getService(String serviceName) {<FILL_FUNCTION_BODY>}

  /**
   * Adds the service into the cache map.
   *
   * @param newService a {@link Service}
   */
  public void addService(Service newService) {
    serviceCache.put(newService.getName(), newService);
  }
}

    if (serviceCache.containsKey(serviceName)) {
      var cachedService = serviceCache.get(serviceName);
      var name = cachedService.getName();
      var id = cachedService.getId();
      LOGGER.info("(cache call) Fetched service {}({}) from cache... !", name, id);
      return cachedService;
    }
    return null;
  
<no_super_class>