/**
  * parameters/parameter
  *
  * @return Returns an List of org.nrg.xdat.om.PipePipelinedetailsParameter
  */
 public <A extends org.nrg.xdat.model.PipePipelinedetailsParameterI>
     List<A> getParameters_parameter() {
   try {
     if (_Parameters_parameter == null) {
       _Parameters_parameter =
           org.nrg.xdat.base.BaseElement.WrapItems(getChildItems("parameters/parameter"));
     }
     return (List<A>) _Parameters_parameter;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.PipePipelinedetailsParameter>();
   }
 }
 /**
  * generatesElements/element
  *
  * @return Returns an List of org.nrg.xdat.om.PipePipelinedetailsElement
  */
 public <A extends org.nrg.xdat.model.PipePipelinedetailsElementI>
     List<A> getGenerateselements_element() {
   try {
     if (_Generateselements_element == null) {
       _Generateselements_element =
           org.nrg.xdat.base.BaseElement.WrapItems(getChildItems("generatesElements/element"));
     }
     return (List<A>) _Generateselements_element;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.PipePipelinedetailsElement>();
   }
 }
 /**
  * parameters/focalSpots/focalSpot
  *
  * @return Returns an List of org.nrg.xdat.om.XnatCtscandataFocalspot
  */
 public <A extends org.nrg.xdat.model.XnatCtscandataFocalspotI>
     List<A> getParameters_focalspots_focalspot() {
   try {
     if (_Parameters_focalspots_focalspot == null) {
       _Parameters_focalspots_focalspot =
           org.nrg.xdat.base.BaseElement.WrapItems(
               getChildItems("parameters/focalSpots/focalSpot"));
     }
     return (List<A>) _Parameters_focalspots_focalspot;
   } catch (Exception e1) {
     return (List<A>) new ArrayList<org.nrg.xdat.om.XnatCtscandataFocalspot>();
   }
 }
  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(ArrayList items) {
   ArrayList al = new ArrayList();
   al = org.nrg.xdat.base.BaseElement.WrapItems(items);
   al.trimToSize();
   return al;
 }