Buggy code:
} Elements heroPanelLinkUrlElements = ele . getElementsByTag ( "a" ) ; if ( heroPanelLinkUrlElements != null ) { Element heroPanelLinkUrlElement = heroPanelLinkUrlElements . first ( ) ; if ( heroPanelLinkUrlElement != null ) { heroPanellinkUrl = heroPanelLinkUrlElement . absUrl ( "href" ) ; if ( StringUtils . isBlank ( heroPanellinkUrl ) ) { heroPanellinkUrl = heroPanelLinkUrlElement . attr ( "href" ) ; } RProductLandingVariation1 . log . debug ( ( ( "Before<seq2seq4repair_space>heroPanellinkUrl" + heroPanellinkUrl ) + "\n" ) ) ; heroPanellinkUrl = FrameworkUtils . getLocaleReference ( heroPanellinkUrl , urlMap ) ; RProductLandingVariation1 . log . debug ( ( ( "after<seq2seq4repair_space>heroPanellinkUrl" + heroPanellinkUrl ) + "\n" ) ) ; } else { RProductLandingVariation1 . 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>" ) ; } Element ctaLinkElement = ele . select ( "p.cta-link" ) . first ( ) ; if ( ctaLinkElement != null ) { Elements ctaLinkAnchorElements = ctaLinkElement . getElementsByTag ( "a" ) ; RProductLandingVariation1 . log . debug ( ( "ctaLinkAnchorElements.size()<seq2seq4repair_space>::::::<seq2seq4repair_space>" + ( ctaLinkAnchorElements . size ( ) ) ) ) ; if ( ( ctaLinkAnchorElements . size ( ) ) > 1 ) { sb . append ( "<li>Some<seq2seq4repair_space>extra<seq2seq4repair_space>text<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>hero<seq2seq4repair_space>panel<seq2seq4repair_space><//li>" ) ; } } } else { RProductLandingVariation1 . 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 ) ; RProductLandingVariation1 . log . debug ( ( ( "heroImage<seq2seq4repair_space>" + heroImage ) + "\n" ) ) ; RProductLandingVariation1 . log . debug ( ( ( "heroPanelTitle<seq2seq4repair_space>" + heroPanelTitle ) + "\n" ) ) ; RProductLandingVariation1 . log . debug ( ( ( "heroPanelDescription<seq2seq4repair_space>" + heroPanelDescription ) + "\n" ) ) ; RProductLandingVariation1 . log . debug ( ( ( "heroPanelLinkText<seq2seq4repair_space>" + heroPanelLinkText ) + "\n" ) ) ; RProductLandingVariation1 . 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 ) ) { heroPanelNode . setProperty ( "linkurl" , 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 ) ; RProductLandingVariation1 . log . debug ( ( ( "heroImage<seq2seq4repair_space>" + heroImage ) + "\n" ) ) ; if ( StringUtils . isNotBlank ( heroImage ) ) { imageNode . setProperty ( "fileReference" , heroImage ) ; } } else { sb . append ( HERO_SLIDE_IMAGE_NODE_NOT_FOUND ) ; } Node imageLinkNode = ( heroPanelNode . hasNode ( "imageLink" ) ) ? heroPanelNode . getNode ( "imageLink" ) : null ; Node heroPanelPopUpNode = null ; Element lightBoxElement = null ; Elements lightBoxElements = ele . select ( "div.c50-image" ) . select ( "a.c26v4-lightbox" ) ; 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> } } } } else { RProductLandingVariation1 . 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 { RProductLandingVariation1 . 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.<//li>" ) ; RProductLandingVariation1 . log . debug ( "<li>Unable<seq2seq4repair_space>to<seq2seq4repair_space>update<seq2seq4repair_space>hero_large<seq2seq4repair_space>component." , e ) ; } try { Node drawersContainerNode = null ; Elements drawerComponentHeaderElements = doc . select ( "div.c00-pilot,div.c100-pilot,div.cc00v1-pilot" ) ; if ( ( drawerComponentHeaderElements != null ) && ( ! ( drawerComponentHeaderElements . isEmpty ( ) ) ) ) { Element drawerComponentHeader = drawerComponentHeaderElements . first ( ) ; if ( drawerComponentHeader != null ) { String drawerComponentHeaderTitle = "" ; Elements drawerComponentHeaderTitleElements = drawerComponentHeader . getElementsByTag ( "h2" ) ; if ( drawerComponentHeaderTitleElements != null ) { Element drawerComponentHeaderTitleElement = drawerComponentHeaderTitleElements . first ( ) ; if ( drawerComponentHeaderTitleElement != null ) { drawerComponentHeaderTitle = drawerComponentHeaderTitleElement . text ( ) ; } else { RProductLandingVariation1 . log . debug ( "<li>drawerComponent<seq2seq4repair_space>Header<seq2seq4repair_space>Title<seq2seq4repair_space>Element<seq2seq4repair_space>not<seq2seq4repair_space>found<//li>" ) ; } } else { RProductLandingVariation1 . log . debug ( "<li>drawerComponent<seq2seq4repair_space>Header<seq2seq4repair_space>Title<seq2seq4repair_space>Element<seq2seq4repair_space>Section<seq2seq4repair_space>not<seq2seq4repair_space>found<//li>" ) ; } if ( indexLowerLeftNode . hasNodes ( ) ) { NodeIterator drawersContainerIterator = indexLowerLeftNode . getNodes ( "header*" ) ; if ( drawersContainerIterator . hasNext ( ) ) { drawersContainerNode = drawersContainerIterator . nextNode ( ) ; RProductLandingVariation1 . log . debug ( ( ( "drawerComponentHeaderTitle<seq2seq4repair_space>" + drawerComponentHeaderTitle ) + "\n" ) ) ; if ( StringUtils . isNotBlank ( drawerComponentHeaderTitle ) ) { drawersContainerNode . setProperty ( "title" , drawerComponentHeaderTitle ) ;

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