function mergeMemberHealthDetailToLB(lbs, results, callback) {
    logutils.logger.debug('mergeMemberHealthDetailToLB');
    if (lbs['loadbalancers'].length > 0 && results.length > 0) {
        for (var lb = 0; lb < lbs['loadbalancers'].length; lb++) {
            var llistener_ref = lbs['loadbalancers'][lb]['loadbalancer']['loadbalancer-listener'];
            if (lbs['loadbalancers'][lb]['loadbalancer'] != null
                    && llistener_ref != null && llistener_ref.length > 0) {
                for (i = 0; i < llistener_ref.length; i++) {
                    var pool_ref = llistener_ref[i]['loadbalancer-pool'];
                    if (lbs['loadbalancers'][lb]['loadbalancer'] != null
                            && pool_ref != null && pool_ref.length > 0) {
                        for (k = 0; k < pool_ref.length; k++) {
                            var healthM = pool_ref[k]['loadbalancer-healthmonitor'];
                            if (healthM != undefined && healthM.length > 0) {
                                for (z = 0; z < healthM.length; z++) {
                                    for (var l = 0; l < results.length; l++) {
                                        if (results[l]['loadbalancer-healthmonitor'] != null) {
                                            if (healthM[z]['uuid'] == results[l]['loadbalancer-healthmonitor']['uuid']) {
                                                healthM[z] = results[l]['loadbalancer-healthmonitor'];
                                            }
                                        }
                                    }
                                }
                            }

                            var mem = lbs['loadbalancers'][lb]['loadbalancer']['loadbalancer-listener'][i]['loadbalancer-pool'][k]['loadbalancer-members'];
                            if (mem != undefined && mem.length > 0) {
                                for (q = 0; q < mem.length; q++) {
                                    for (var l = 0; l < results.length; l++) {
                                        if (results[l]['loadbalancer-member'] != null) {
                                            if (mem[q]['uuid'] == results[l]['loadbalancer-member']['uuid']) {
                                                mem[q] = results[l]['loadbalancer-member'];
                                            }
                                        }
                                    }
                                }
                            }

                        }
                    }
                }
            }
        }
    }
    callback(lbs);
}
/**
 * @mergeMemberHealthDetailToLB
 * @private function
 * @Return call back it process loadbalancer-member details and
 *         loadbalancer-healthmonitor details merge it to loadbalancer-pool.
 * @param lbs
 * @param results
 * @param callback
 * @returns
 */
@mergeMemberHealthDetailToLB
@private function
@Return call back it process loadbalancer-member details and
loadbalancer-healthmonitor details merge it to loadbalancer-pool.
@mergeMemberHealthDetailToLB @private function @Return call back it process loadbalancer - member details and loadbalancer - healthmonitor details merge it to loadbalancer - pool .
function mergeMemberHealthDetailToLB(lbs, results, callback) {
    logutils.logger.debug('mergeMemberHealthDetailToLB');
    if (lbs['loadbalancers'].length > 0 && results.length > 0) {
        for (var lb = 0; lb < lbs['loadbalancers'].length; lb++) {
            var llistener_ref = lbs['loadbalancers'][lb]['loadbalancer']['loadbalancer-listener'];
            if (lbs['loadbalancers'][lb]['loadbalancer'] != null
                    && llistener_ref != null && llistener_ref.length > 0) {
                for (i = 0; i < llistener_ref.length; i++) {
                    var pool_ref = llistener_ref[i]['loadbalancer-pool'];
                    if (lbs['loadbalancers'][lb]['loadbalancer'] != null
                            && pool_ref != null && pool_ref.length > 0) {
                        for (k = 0; k < pool_ref.length; k++) {
                            var healthM = pool_ref[k]['loadbalancer-healthmonitor'];
                            if (healthM != undefined && healthM.length > 0) {
                                for (z = 0; z < healthM.length; z++) {
                                    for (var l = 0; l < results.length; l++) {
                                        if (results[l]['loadbalancer-healthmonitor'] != null) {
                                            if (healthM[z]['uuid'] == results[l]['loadbalancer-healthmonitor']['uuid']) {
                                                healthM[z] = results[l]['loadbalancer-healthmonitor'];
                                            }
                                        }
                                    }
                                }
                            }
                            var mem = lbs['loadbalancers'][lb]['loadbalancer']['loadbalancer-listener'][i]['loadbalancer-pool'][k]['loadbalancer-members'];
                            if (mem != undefined && mem.length > 0) {
                                for (q = 0; q < mem.length; q++) {
                                    for (var l = 0; l < results.length; l++) {
                                        if (results[l]['loadbalancer-member'] != null) {
                                            if (mem[q]['uuid'] == results[l]['loadbalancer-member']['uuid']) {
                                                mem[q] = results[l]['loadbalancer-member'];
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    callback(lbs);
}
function mergeMemberHealthDetailToLB ( lbs , results , callback ) { logutils . logger . debug ( 'mergeMemberHealthDetailToLB' ) ; if ( lbs [ 'loadbalancers' ] . length > 0 && results . length > 0 ) { for ( var lb = 0 ; lb < lbs [ 'loadbalancers' ] . length ; lb ++ ) { var llistener_ref = lbs [ 'loadbalancers' ] [ lb ] [ 'loadbalancer' ] [ 'loadbalancer-listener' ] ; if ( lbs [ 'loadbalancers' ] [ lb ] [ 'loadbalancer' ] != null && llistener_ref != null && llistener_ref . length > 0 ) { for ( i = 0 ; i < llistener_ref . length ; i ++ ) { var pool_ref = llistener_ref [ i ] [ 'loadbalancer-pool' ] ; if ( lbs [ 'loadbalancers' ] [ lb ] [ 'loadbalancer' ] != null && pool_ref != null && pool_ref . length > 0 ) { for ( k = 0 ; k < pool_ref . length ; k ++ ) { var healthM = pool_ref [ k ] [ 'loadbalancer-healthmonitor' ] ; if ( healthM != undefined && healthM . length > 0 ) { for ( z = 0 ; z < healthM . length ; z ++ ) { for ( var l = 0 ; l < results . length ; l ++ ) { if ( results [ l ] [ 'loadbalancer-healthmonitor' ] != null ) { if ( healthM [ z ] [ 'uuid' ] == results [ l ] [ 'loadbalancer-healthmonitor' ] [ 'uuid' ] ) { healthM [ z ] = results [ l ] [ 'loadbalancer-healthmonitor' ] ; } } } } } var mem = lbs [ 'loadbalancers' ] [ lb ] [ 'loadbalancer' ] [ 'loadbalancer-listener' ] [ i ] [ 'loadbalancer-pool' ] [ k ] [ 'loadbalancer-members' ] ; if ( mem != undefined && mem . length > 0 ) { for ( q = 0 ; q < mem . length ; q ++ ) { for ( var l = 0 ; l < results . length ; l ++ ) { if ( results [ l ] [ 'loadbalancer-member' ] != null ) { if ( mem [ q ] [ 'uuid' ] == results [ l ] [ 'loadbalancer-member' ] [ 'uuid' ] ) { mem [ q ] = results [ l ] [ 'loadbalancer-member' ] ; } } } } } } } } } } } callback ( lbs ) ; }
@mergeMemberHealthDetailToLB
 @private function
 @Return call back it process loadbalancer-member details and
         loadbalancer-healthmonitor details merge it to loadbalancer-pool.
@mergeMemberHealthDetailToLB @private function @Return call back it process loadbalancer - member details and loadbalancer - healthmonitor details merge it to loadbalancer - pool .