code: public static <T> ExampleExpression exampleExpression(EbeanServer ebeanServer, Example<T> example) {
          LikeType likeType;
          switch (example.getMatcher().getDefaultStringMatcher()) {
              case EXACT:
                  likeType = LikeType.EQUAL_TO;
                  break;
              case CONTAINING:
                  likeType = LikeType.CONTAINS;
                  break;
              case STARTING:
                  likeType = LikeType.STARTS_WITH;
                  break;
              case ENDING:
                  likeType = LikeType.ENDS_WITH;
                  break;
              default:
                  likeType = LikeType.RAW;
                  break;
          }
          return ebeanServer.getExpressionFactory().exampleLike(example.getProbe(),
                  example.getMatcher().isIgnoreCaseEnabled(),
                  likeType);
      }
docs: Return a ExampleExpression from Spring data Example
  
  @param ebeanServer
  @param example
  @param <T>
  @return