code: public static RepositoryQuery lookupFrom(EbeanQueryMethod method, EbeanServer ebeanServer) {
          final String queryName = method.getNamedQueryName();
  
          LOG.debug("Looking up named query {}", queryName);
  
          try {
              Query query = ebeanServer.createNamedQuery(method.getEntityInformation().getJavaType(), queryName);
              return new NamedEbeanQuery(method, ebeanServer, query);
          } catch (PersistenceException e) {
              LOG.debug("Did not find named query {}", queryName);
              return null;
          }
      }
docs: Looks up a named query for the given {@link org.springframework.data.repository.query.QueryMethod}.
  
  @param method
  @return