private static final String getKey ( String apiVersion , String kind ) { if ( kind == null ) { return null ; } else if ( apiVersion == null ) { return kind ; } else { return String . format ( "%s#%s" , apiVersion , kind ) ; } }
Returns a composite key for apiVersion and kind .