class SessionHelpers {

  static SessionTracking trackingFromEnum(String sessionTracking)
      throws InstantiationException, IllegalAccessException {
    try {
      SessionPropagation sp = SessionPropagation.valueOf(sessionTracking);
      return sp.get();
    } catch (IllegalArgumentException e) {
      logger.debug(
          "The argument for session propagation was not enumration, " + "it is probably class name: {}, message: {}",
          sessionTracking, e);
      return null;
    }
  }

}