public static boolean isUriKey(String key){
  return key.endsWith(".url") || key.endsWith(".uri");
}

public static boolean isUriKey ( String key ) { return key . endsWith ( ".url" ) || key . endsWith ( ".uri" ) ; }
this method determines if the supplied key relates to a uri .
