To publish a class method Producer added ability to specify flags and attributes.