class UuidProvider implements SessionIdProvider {

  @Override
  public String readId(String value) {
    try {
      return UUID.fromString(value).toString();
    } catch (Exception e) { // NOSONAR If exception it is not valid UUID
      logger.info("Cookie value vas not a valid UUID: {}", value);
      return null;
    }
  }

}