/**
  * get all existing elements and pass for the addMainInToTransformList() method
  *
  * @param pleles
  * @return
  * @throws paloexception
  */
 public void getAllExistPaloDimensionElements(paloelements pleles) throws paloexception {
   maxDepthElement(pleles);
   // List<String> sr = new ArrayList<String>();
   String[] arr = null;
   paths = new HashMap<String, List<List>>();
   for (paloelement plElm : pleles.getElements()) {
     // if element has no parent it means it's root element
     if (plElm.getElementParents() == null) {
       List elementPaths = new ArrayList<List>();
       List path = new ArrayList<String>();
       elementPaths.add(path);
       path.add(plElm.getName());
       paths.put(plElm.getName(), elementPaths);
       collectionPaths(pleles, plElm, elementPaths, path);
     }
   }
   for (String key : paths.keySet()) {
     List<List> elementPaths = paths.get(key);
     for (List<String> path : elementPaths) {
       arr = new String[maxDepth];
       for (int i = 0; i < path.size(); i++) {
         arr[i] = path.get(i);
       }
       addMainInToTransformList(arr);
     }
   }
 }