private static String getDeepestNestedElementName ( String configDisplayId ) { int start = configDisplayId . lastIndexOf ( "]/" ) ; if ( start > 1 ) { int end = configDisplayId . indexOf ( ' ' , start += 2 ) ; if ( end > start ) return configDisplayId . substring ( start , end ) ; } return null ; }
Returns the most deeply nested element name .