code: public static String getType (String command)
      {
          int cidx = StringUtil.isBlank(command) ? -1 : command.indexOf(':');
          return (cidx == -1) ? "" : command.substring(0, cidx);
      }
docs: Returns the type associated with this action command (which is mapped to a registered
  object action handler) or the empty string if it has no type.