code: public QueryFind buildFind(IAssetType assetType) {
          String searchString = find.getSearchString();
  
          if ((searchString != null) && (searchString.trim().length() != 0)) {
              AttributeSelection attributes = new AttributeSelection();
  
              if (find.fields.size() > 0) {
                  for (String field : find.fields) {
                      attributes
                              .add(assetType
                                      .getAttributeDefinition(resolvePropertyName(field)));
                  }
              } else {
                  if (assetType.getShortNameAttribute() != null) {
                      attributes.add(assetType.getShortNameAttribute());
                  }
                  if (assetType.getNameAttribute() != null) {
                      attributes.add(assetType.getNameAttribute());
                  }
                  if (assetType.getDescriptionAttribute() != null) {
                      attributes.add(assetType.getDescriptionAttribute());
                  }
              }
              return new QueryFind(find.getSearchString(), attributes);
          }
          return null;
      }
docs: Create {@code QueryFind} by {@code assetType} and {@code EntityFilter.find}.
  
  @param assetType information about Asset type.
  @return created object {@code QueryFind}.