 #     + Delete link if it is an epty array or is undefined.
 #     + Remove special objects element from node children.
 #     + Use collection `rel` attribute as a collection name.
-#     + Detect whether current `xpath` points to root node.
-#     + If current node is a root one export collections to target node.
-#     - Otherwise export collections to the current target (should be an API
+#     - Export collections to the current target (should be an API
 #       node instance).
 #     + Clean current namespace of the `_collections` property.
 #

#
# - Save attributes in corresponding property if existed.
#
# ### General tasks
#
# - If current node is an owner of collections, resource links or actions
#   (except the case when the node is a resource)then an API node instance
#   should be created and set as a current target.
# - If current node is a root one then current target should be a hydrator
#   instance target.
# - We should replace node value with current target (if exists).
#
# ### Hydrate collections
#

#     + Detect that current node has a resource links.
#     + Retrive resource links related to `xpath`.
#     + Remove resource link child elements from target node.
#     - Export corresponding `_resourceLinks` namespace to current target.
#     + Remove related namespace from `_resourceLinks` property.
#
# ### Hydrate resources
#
# + Detect resources.
# - Create a resource object and set as a current target.
# - Proceed with API node hydration procedure.
#
# ### Hydrate actions
#
