code: public static String camel2Underscore(@Nullable final String name) {
          if (name == null) {
              return null;
          }
          return name.replaceAll("(.)(\\p{Upper})", "$1_$2").toLowerCase();
      }
docs: Converts the given camel case name into a name with underscores.
  
  @param name Name to convert.
  
  @return Camel case replaced with underscores.