code: @SuppressWarnings("unchecked")
      @Override
      public <R> R getNativeSession(Class<R> requiredType) {
          if (requiredType != null) {
              if (requiredType.isInstance(this.nativeSession)) {
                  return (R) this.nativeSession;
              }
          }
          return null;
      }
docs: {@inheritDoc}