function buildStructureObject(ProductObject) {

    let structureObject = {
        key: ProductObject.key,
        name: ProductObject.name,
        contains: []
    }

    relations.forEach(element => {
        if (element.container == structureObject.key) {
            let productObject = {
                key: element.contains,
                name: getProductName(element.contains)
            }
            structureObject.contains.push(productObject);
        }
    });

    return structureObject;
}
/**
 * Returns a containment structure object for a given product object that has key and name
 *
 * @param {Object} ProductObject
 * @returns
 */
Returns a containment structure object for a given product object that has key and name
@param {Object} ProductObject
@returns
Returns a containment structure object for a given product object that has key and name @param { Object } ProductObject @returns
function buildStructureObject(ProductObject) {
    let structureObject = {
        key: ProductObject.key,
        name: ProductObject.name,
        contains: []
    }
    relations.forEach(element => {
        if (element.container == structureObject.key) {
            let productObject = {
                key: element.contains,
                name: getProductName(element.contains)
            }
            structureObject.contains.push(productObject);
        }
    });
    return structureObject;
}
function buildStructureObject ( ProductObject ) { let structureObject = { key : ProductObject . key , name : ProductObject . name , contains : [ ] } relations . forEach ( element => { if ( element . container == structureObject . key ) { let productObject = { key : element . contains , name : getProductName ( element . contains ) } structureObject . contains . push ( productObject ) ; } } ) ; return structureObject ; }
Returns a containment structure object for a given product object that has key and name
 @param {Object} ProductObject
 @returns
Returns a containment structure object for a given product object that has key and name @param { Object } ProductObject @returns