# File lib/rgen/model_builder/builder_context.rb, line 237
    def processArguments(args)
      unless (args.size == 2 && args.first.is_a?(String) && args.last.is_a?(Hash)) ||
        (args.size == 1 && (args.first.is_a?(String) || args.first.is_a?(Hash))) ||
        args.size == 0
        raise "Provide a Hash to set feature values, " +
          "optionally the first argument may be a String specifying " + 
          "the value of the \"name\" attribute."
      end
      if args.last.is_a?(Hash)
        argHash = args.last
      else
        argHash = {}
      end
      nameArg = args.first if args.first.is_a?(String)
      [nameArg, argHash]
    end