code: public static String notEmptyIfNotNull(String value, String name) {
          return notEmptyIfNotNull(value, name, null);
      }
docs: Check that a string is not empty if its not null.
  
  @param value value.
  @param name parameter name for the exception message.
  @return the given value.