/**
  * checks if keywords are valid.
  *
  * @param inBackgroundItems background list list.
  * @return true if all keywords are of valid length.
  */
 boolean validBackgroundItems(final String inBackgroundItems) {
   for (BackgroundItem item : DomainFormatUtility.splitCapabilitiesString(inBackgroundItems)) {
     if (item.getName().length() > BackgroundItem.MAX_BACKGROUND_ITEM_NAME_LENGTH) {
       return false;
     }
   }
   return true;
 }
  /**
   * Convert the input List<BackgroundItem> into a searchable String.
   *
   * @param listObj the List<BackgroundItem> to convert
   * @return a string concatenation of the background items.
   */
  @SuppressWarnings("unchecked")
  @Override
  public String objectToString(final Object listObj) {
    if (listObj == null || !(listObj instanceof List)) {
      return null;
    }

    StringBuilder sb = new StringBuilder();

    sb.append(" ");

    for (BackgroundItem item : (List<BackgroundItem>) listObj) {
      sb.append(item.getName());
      sb.append(" ");
    }

    return sb.toString();
  }