code: public static String getCommandName(Object obj) {
      String name = obj.getClass().getName();
      int dollar = name.indexOf("_$$_");
      if (-1 == dollar) {
        name = name.substring(name.lastIndexOf('.') + 1);
      } else {
        name = name.substring(name.lastIndexOf('.') + 1, dollar);
      }
      return Strings.uncapitalize(name);
    }
docs: <p>
  getCommandName.
  </p>
  
  @param obj a {@link java.lang.Object} object.
  @return a {@link java.lang.String} object.