code: function checkForReservedClassName(args) {
    if (!args) {
      return;
    }
    if (JHipsterCore.isReservedClassName(args.name)) {
      if (args.shouldThrow) {
        throw new BuildException(
          exceptions.IllegalName,
          `The passed class name '${args.name}' is reserved.`);
      } else {
        winston.warn(
          chalk.yellow(
            `The passed class name '${args.name}' is reserved .`));
      }
    }
  }
docs: Checks for reserved class name.
  @param args an object having as keys: name and shouldThrow