public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getCatCatalogTagsByField(
      String xmlPath, Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(xmlPath, value, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
  public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getAllCatCatalogTags(
      org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();

    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetAllItems(SCHEMA_ELEMENT_NAME, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
  public static ArrayList<org.nrg.xdat.om.XnatCtscandata> getXnatCtscandatasByField(
      org.nrg.xft.search.CriteriaCollection criteria,
      org.nrg.xft.security.UserI user,
      boolean preLoad) {
    ArrayList<org.nrg.xdat.om.XnatCtscandata> al = new ArrayList<org.nrg.xdat.om.XnatCtscandata>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(criteria, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
 public static ArrayList wrapItems(org.nrg.xft.collections.ItemCollection items) {
   return wrapItems(items.getItems());
 }