code: private static List<Element> createCollectionElement(final List<String> pathResource,
          final Document document) {
  
          final List<Element> collections = new ArrayList<Element>();
          for (final String path : pathResource) {
              final Element collection =
                  document.createElementNS(JaxRxConstants.URL, JaxRxConstants.JAXRX + ":resource");
              collection.setAttribute("name", path);
              collections.add(collection);
          }
          return collections;
      }
docs: This method creates the XML element containing a collection. This
  collection contains the available resources which are children of the
  database.
  
  @param pathResource
  The list with the path of the available resources.
  @param document
  The XML {@link Document} instance.
  @return A list of XML {@link Element} as the collection.