private void selectEntity ( Entity entity , Item < Entity > item , String sectionId ) { SectionContext sectionContext = NextServerSession . get ( ) . getSectionContext ( sectionId ) ; if ( sectionContext == null ) { return ; } String entityPath = SectionContextUtil . getSelectedEntityPath ( sectionId ) ; if ( ( entityPath != null ) && entity . getPath ( ) . equals ( entityPath ) ) { item . add ( AttributeModifier . replace ( "class" , "tr-selected" ) ) ; // reset SectionContextUtil . setSelectedEntityPath ( sectionId , null ) ; } }
select entity from GoTo actions