Buggy code:
} RProductLandingVariation2 . log . debug ( ( ( "Before<seq2seq4repair_space>heroPanellinkUrl" + heroPanellinkUrl ) + "\n" ) ) ; heroPanellinkUrl = FrameworkUtils . getLocaleReference ( heroPanellinkUrl , urlMap ) ; RProductLandingVariation2 . log . debug ( ( ( "after<seq2seq4repair_space>heroPanellinkUrl" + heroPanellinkUrl ) + "\n" ) ) ; } else { RProductLandingVariation2 . log . debug ( "<li>Hero<seq2seq4repair_space>Panel<seq2seq4repair_space>element<seq2seq4repair_space>not<seq2seq4repair_space>having<seq2seq4repair_space>any<seq2seq4repair_space>linkurl<seq2seq4repair_space>in<seq2seq4repair_space>it<seq2seq4repair_space><//li>" ) ; } } else { RProductLandingVariation2 . log . debug ( "<li>Hero<seq2seq4repair_space>Panel<seq2seq4repair_space>link<seq2seq4repair_space>url<seq2seq4repair_space>element<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space><//li>" ) ; } String heroImage = FrameworkUtils . extractImagePath ( ele , sb ) ; RProductLandingVariation2 . log . debug ( ( ( "heroImage<seq2seq4repair_space>" + heroImage ) + "\n" ) ) ; RProductLandingVariation2 . log . debug ( ( ( "heroPanelTitle<seq2seq4repair_space>" + heroPanelTitle ) + "\n" ) ) ; RProductLandingVariation2 . log . debug ( ( ( "heroPanelDescription<seq2seq4repair_space>" + heroPanelDescription ) + "\n" ) ) ; RProductLandingVariation2 . log . debug ( ( ( "heroPanelLinkText<seq2seq4repair_space>" + heroPanelLinkText ) + "\n" ) ) ; RProductLandingVariation2 . log . debug ( ( ( "heroPanellinkUrl<seq2seq4repair_space>" + heroPanellinkUrl ) + "\n" ) ) ; if ( ( heroPanelIterator != null ) && ( heroPanelIterator . hasNext ( ) ) ) heroPanelNode = heroPanelIterator . nextNode ( ) ; if ( heroPanelNode != null ) { if ( StringUtils . isNotBlank ( heroPanelTitle ) ) { heroPanelNode . setProperty ( "title" , heroPanelTitle ) ; } else { sb . append ( HERO_SLIDE_TITLE_NOT_FOUND ) ; } if ( StringUtils . isNotBlank ( heroPanelDescription ) ) { heroPanelNode . setProperty ( "description" , heroPanelDescription ) ; } else { sb . append ( HERO_SLIDE_DESCRIPTION_NOT_FOUND ) ; } if ( StringUtils . isNotBlank ( heroPanelLinkText ) ) { heroPanelNode . setProperty ( "linktext" , heroPanelLinkText ) ; } else { sb . append ( HERO_SLIDE_LINKTEXT_NOT_FOUND ) ; } if ( StringUtils . isNotBlank ( heroPanellinkUrl ) ) { Node heroCta = ( heroPanelNode . hasNode ( "cta" ) ) ? heroPanelNode . getNode ( "cta" ) : null ; if ( heroCta != null ) { if ( ( ( ( ! ( heroPanelLinkText . equals ( "" ) ) ) && ( heroPanelLinkText != null ) ) && ( ! ( heroPanellinkUrl . equals ( "" ) ) ) ) && ( heroPanellinkUrl != null ) ) { String linkType = heroCta . getProperty ( "linktype" ) . getString ( ) ; if ( ! ( linkType . equals ( "Url" ) ) ) { heroCta . setProperty ( "linktype" , "Url" ) ; } } heroCta . setProperty ( "url" , heroPanellinkUrl ) ; } } else { sb . append ( HERO_SLIDE_LINKURL_NOT_FOUND ) ; } if ( heroPanelNode . hasNode ( "image" ) ) { Node imageNode = heroPanelNode . getNode ( "image" ) ; String fileReference = ( imageNode . hasProperty ( "fileReference" ) ) ? imageNode . getProperty ( "fileReference" ) . getString ( ) : "" ; heroImage = FrameworkUtils . migrateDAMContent ( heroImage , fileReference , locale , sb ) ; RProductLandingVariation2 . log . debug ( ( ( "heroImage<seq2seq4repair_space>" + heroImage ) + "\n" ) ) ; if ( StringUtils . isNotBlank ( heroImage ) ) { imageNode . setProperty ( "fileReference" , heroImage ) ; } else { noImageCount ++ ; } } else { sb . append ( HERO_SLIDE_IMAGE_NODE_NOT_FOUND ) ; } Node imageLinkNode = ( heroPanelNode . hasNode ( "imageLink" ) ) ? heroPanelNode . getNode ( "imageLink" ) : null ; Node heroPanelPopUpNode = null ; Elements lightBoxElements = ele . select ( "div.c50-image" ) . select ( "a.c26v4-lightbox" ) ; Element lightBoxElement = null ; if ( ( lightBoxElements != null ) && ( ! ( lightBoxElements . isEmpty ( ) ) ) ) { lightBoxElement = lightBoxElements . first ( ) ; } if ( imageLinkNode != null ) { heroPanelPopUpNode = FrameworkUtils . getHeroPopUpNode ( imageLinkNode ) ; } if ( ( heroPanelPopUpNode == null ) && ( lightBoxElement != null ) ) { sb . append ( "<li>video<seq2seq4repair_space>pop<seq2seq4repair_space>up<seq2seq4repair_space>is<seq2seq4repair_space>present<seq2seq4repair_space>in<seq2seq4repair_space>WEB<seq2seq4repair_space>page<seq2seq4repair_space>but<seq2seq4repair_space>it<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>present<seq2seq4repair_space>in<seq2seq4repair_space>WEM<seq2seq4repair_space>page.<//li>" ) ; } if ( ( heroPanelPopUpNode != null ) && ( lightBoxElement == null ) ) { sb . append ( "<li>video<seq2seq4repair_space>pop<seq2seq4repair_space>up<seq2seq4repair_space>is<seq2seq4repair_space>present<seq2seq4repair_space>in<seq2seq4repair_space>WEM<seq2seq4repair_space>page<seq2seq4repair_space>but<seq2seq4repair_space>it<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>present<seq2seq4repair_space>in<seq2seq4repair_space>WEB<seq2seq4repair_space>page.<//li>" ) ; } if ( ( ( heroPanelPopUpNode != null ) && ( lightBoxElement != null ) ) && ( StringUtils . isNotBlank ( heroPanelTitle ) ) ) { <START_BUG> heroPanelPopUpNode . setProperty ( "popupHeader" , heroPanelTitle ) ; <END_BUG> } } } if ( noImageCount >= 1 ) { sb . append ( ( ( noImageCount + "<seq2seq4repair_space>" ) + ( Constants . HERO_IMAGE_NOT_AVAILABLE ) ) ) ; RProductLandingVariation2 . log . debug ( "image<seq2seq4repair_space>path<seq2seq4repair_space>is<seq2seq4repair_space>blank." ) ; } } else { RProductLandingVariation2 . log . debug ( "<li>Hero<seq2seq4repair_space>Large<seq2seq4repair_space>Frames//Panel<seq2seq4repair_space>Elements<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>found<//li>" ) ; } } else { RProductLandingVariation2 . log . debug ( "<li>Hero<seq2seq4repair_space>Large<seq2seq4repair_space>Element<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>found<//li>" ) ; } } else { sb . append ( HERO_LARGE_COMPONENT_NOT_FOUND ) ; } } catch ( Exception e ) { sb . append ( ( ( "<li>Unable<seq2seq4repair_space>to<seq2seq4repair_space>update<seq2seq4repair_space>hero_large<seq2seq4repair_space>component." + e ) + "<//li>" ) ) ; } try { Elements selectorBarLargeElements = doc . select ( "div.selectorbarpanel" ) ; if ( ( selectorBarLargeElements . size ( ) ) == 0 ) { selectorBarLargeElements = doc . select ( "div.c58-pilot" ) . select ( "div.left,div.mid,div.right" ) ; } Node selectorBarNode = ( indexLeftNode . hasNode ( "selectorbar_containe" ) ) ? indexLeftNode . getNode ( "selectorbar_containe" ) : null ; if ( selectorBarNode != null ) { if ( selectorBarLargeElements . isEmpty ( ) ) { RProductLandingVariation2 . log . debug ( "No<seq2seq4repair_space>selector<seq2seq4repair_space>bar<seq2seq4repair_space>element<seq2seq4repair_space>found<seq2seq4repair_space>with<seq2seq4repair_space>div<seq2seq4repair_space>class<seq2seq4repair_space>name<seq2seq4repair_space>selectorbarpanel." ) ; sb . append ( "<li>Selector<seq2seq4repair_space>bar<seq2seq4repair_space>component<seq2seq4repair_space>with<seq2seq4repair_space>class<seq2seq4repair_space>name<seq2seq4repair_space>'selectorbarpanel'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist<seq2seq4repair_space>on<seq2seq4repair_space>locale<seq2seq4repair_space>page.<//li>" ) ; } else { RProductLandingVariation2 . log . debug ( ( "selector<seq2seq4repair_space>bar<seq2seq4repair_space>node<seq2seq4repair_space>component<seq2seq4repair_space>found<seq2seq4repair_space>at<seq2seq4repair_space>:<seq2seq4repair_space>" + ( indexLeftNode . getPath ( ) ) ) ) ; int eleSize = selectorBarLargeElements . size ( ) ; RProductLandingVariation2 . log . debug ( ( "selector<seq2seq4repair_space>component<seq2seq4repair_space>element<seq2seq4repair_space>size:<seq2seq4repair_space>" + eleSize ) ) ; Node panel = selectorBarNode . getNode ( "panel1" ) ; NodeIterator selectorBarPanel = panel . getNodes ( "selectorbar_content*" ) ; int nodeSize = ( ( int ) ( selectorBarPanel . getSize ( ) ) ) ;

Fix:
heroPanelPopUpNode . setProperty ( "header" , heroPanelTitle ) ;