private Map < String , Object > getMap ( String [ ] pathKeys ) { if ( pathKeys == null ) { return ( Map < String , Object > ) resourceData ; } Map < String , Object > selected = ( Map < String , Object > ) resourceData ; for ( int i = 0 ; i < pathKeys . length ; i ++ ) { if ( selected . containsKey ( pathKeys [ i ] ) && selected . get ( pathKeys [ i ] ) . getClass ( ) . equals ( resourceData . getClass ( ) ) ) { selected = ( Map < String , Object > ) selected . get ( pathKeys [ i ] ) ; } else { return null ; } } return selected ; }
Get a map embedded in the activity following a set of keys