<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_main_manifest_entry(jar, binary):
 """Creates a jar manifest for the given binary. If the binary declares a main then a 'Main-Class' manifest entry will be included. """

    main = binary.main
    if main is not None:
      jar.main(main)