code: public static String getScriptName(Class<?> clazz) {
          return clazz == null ? null : getScriptName(clazz.getName());
      }
docs: Retrieves the script name representation of the supplied class. For example
  MyFunkyGrailsScript would be my-funky-grails-script.
  
  @param clazz The class to convert
  @return The script name representation