private String realKey(String key){
  return key.contains("/") ? key.substring(key.lastIndexOf('/') + 1,key.length()) : key;
}

private String realKey ( String key ) { return key . contains ( "/" ) ? key . substring ( key . lastIndexOf ( '/' ) + 1 , key . length ( ) ) : key ; }
gets the name of the given key , e . g . " / foo / bar " - > " bar " .
