Previouly this constructor was containing a lot of duplicated code that is now factorized by using the newly added ‘collectElements’ private method. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854671 13f79535-47bb-0310-9956-ffa450edef68