code: @SneakyThrows
      protected File getRegisteredServiceFileName(final RegisteredService service) {
          val fileName = resourceNamingStrategy.build(service, getExtensions()[0]);
          val svcFile = new File(this.serviceRegistryDirectory.toFile(), fileName);
          LOGGER.debug("Using [{}] as the service definition file", svcFile.getCanonicalPath());
          return svcFile;
  
      }
docs: Creates a file for a registered service.
  The file is named as {@code [SERVICE-NAME]-[SERVICE-ID]-.{@value #getExtensions()}}
  
  @param service Registered service.
  @return file in service registry directory.
  @throws IllegalArgumentException if file name is invalid