bbc6da
bbc6da
                                 Apache License
bbc6da
                           Version 2.0, January 2004
bbc6da
                        http://www.apache.org/licenses/
bbc6da
bbc6da
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
bbc6da
bbc6da
   1. Definitions.
bbc6da
bbc6da
      "License" shall mean the terms and conditions for use, reproduction,
bbc6da
      and distribution as defined by Sections 1 through 9 of this document.
bbc6da
bbc6da
      "Licensor" shall mean the copyright owner or entity authorized by
bbc6da
      the copyright owner that is granting the License.
bbc6da
bbc6da
      "Legal Entity" shall mean the union of the acting entity and all
bbc6da
      other entities that control, are controlled by, or are under common
bbc6da
      control with that entity. For the purposes of this definition,
bbc6da
      "control" means (i) the power, direct or indirect, to cause the
bbc6da
      direction or management of such entity, whether by contract or
bbc6da
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
bbc6da
      outstanding shares, or (iii) beneficial ownership of such entity.
bbc6da
bbc6da
      "You" (or "Your") shall mean an individual or Legal Entity
bbc6da
      exercising permissions granted by this License.
bbc6da
bbc6da
      "Source" form shall mean the preferred form for making modifications,
bbc6da
      including but not limited to software source code, documentation
bbc6da
      source, and configuration files.
bbc6da
bbc6da
      "Object" form shall mean any form resulting from mechanical
bbc6da
      transformation or translation of a Source form, including but
bbc6da
      not limited to compiled object code, generated documentation,
bbc6da
      and conversions to other media types.
bbc6da
bbc6da
      "Work" shall mean the work of authorship, whether in Source or
bbc6da
      Object form, made available under the License, as indicated by a
bbc6da
      copyright notice that is included in or attached to the work
bbc6da
      (an example is provided in the Appendix below).
bbc6da
bbc6da
      "Derivative Works" shall mean any work, whether in Source or Object
bbc6da
      form, that is based on (or derived from) the Work and for which the
bbc6da
      editorial revisions, annotations, elaborations, or other modifications
bbc6da
      represent, as a whole, an original work of authorship. For the purposes
bbc6da
      of this License, Derivative Works shall not include works that remain
bbc6da
      separable from, or merely link (or bind by name) to the interfaces of,
bbc6da
      the Work and Derivative Works thereof.
bbc6da
bbc6da
      "Contribution" shall mean any work of authorship, including
bbc6da
      the original version of the Work and any modifications or additions
bbc6da
      to that Work or Derivative Works thereof, that is intentionally
bbc6da
      submitted to Licensor for inclusion in the Work by the copyright owner
bbc6da
      or by an individual or Legal Entity authorized to submit on behalf of
bbc6da
      the copyright owner. For the purposes of this definition, "submitted"
bbc6da
      means any form of electronic, verbal, or written communication sent
bbc6da
      to the Licensor or its representatives, including but not limited to
bbc6da
      communication on electronic mailing lists, source code control systems,
bbc6da
      and issue tracking systems that are managed by, or on behalf of, the
bbc6da
      Licensor for the purpose of discussing and improving the Work, but
bbc6da
      excluding communication that is conspicuously marked or otherwise
bbc6da
      designated in writing by the copyright owner as "Not a Contribution."
bbc6da
bbc6da
      "Contributor" shall mean Licensor and any individual or Legal Entity
bbc6da
      on behalf of whom a Contribution has been received by Licensor and
bbc6da
      subsequently incorporated within the Work.
bbc6da
bbc6da
   2. Grant of Copyright License. Subject to the terms and conditions of
bbc6da
      this License, each Contributor hereby grants to You a perpetual,
bbc6da
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
bbc6da
      copyright license to reproduce, prepare Derivative Works of,
bbc6da
      publicly display, publicly perform, sublicense, and distribute the
bbc6da
      Work and such Derivative Works in Source or Object form.
bbc6da
bbc6da
   3. Grant of Patent License. Subject to the terms and conditions of
bbc6da
      this License, each Contributor hereby grants to You a perpetual,
bbc6da
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
bbc6da
      (except as stated in this section) patent license to make, have made,
bbc6da
      use, offer to sell, sell, import, and otherwise transfer the Work,
bbc6da
      where such license applies only to those patent claims licensable
bbc6da
      by such Contributor that are necessarily infringed by their
bbc6da
      Contribution(s) alone or by combination of their Contribution(s)
bbc6da
      with the Work to which such Contribution(s) was submitted. If You
bbc6da
      institute patent litigation against any entity (including a
bbc6da
      cross-claim or counterclaim in a lawsuit) alleging that the Work
bbc6da
      or a Contribution incorporated within the Work constitutes direct
bbc6da
      or contributory patent infringement, then any patent licenses
bbc6da
      granted to You under this License for that Work shall terminate
bbc6da
      as of the date such litigation is filed.
bbc6da
bbc6da
   4. Redistribution. You may reproduce and distribute copies of the
bbc6da
      Work or Derivative Works thereof in any medium, with or without
bbc6da
      modifications, and in Source or Object form, provided that You
bbc6da
      meet the following conditions:
bbc6da
bbc6da
      (a) You must give any other recipients of the Work or
bbc6da
          Derivative Works a copy of this License; and
bbc6da
bbc6da
      (b) You must cause any modified files to carry prominent notices
bbc6da
          stating that You changed the files; and
bbc6da
bbc6da
      (c) You must retain, in the Source form of any Derivative Works
bbc6da
          that You distribute, all copyright, patent, trademark, and
bbc6da
          attribution notices from the Source form of the Work,
bbc6da
          excluding those notices that do not pertain to any part of
bbc6da
          the Derivative Works; and
bbc6da
bbc6da
      (d) If the Work includes a "NOTICE" text file as part of its
bbc6da
          distribution, then any Derivative Works that You distribute must
bbc6da
          include a readable copy of the attribution notices contained
bbc6da
          within such NOTICE file, excluding those notices that do not
bbc6da
          pertain to any part of the Derivative Works, in at least one
bbc6da
          of the following places: within a NOTICE text file distributed
bbc6da
          as part of the Derivative Works; within the Source form or
bbc6da
          documentation, if provided along with the Derivative Works; or,
bbc6da
          within a display generated by the Derivative Works, if and
bbc6da
          wherever such third-party notices normally appear. The contents
bbc6da
          of the NOTICE file are for informational purposes only and
bbc6da
          do not modify the License. You may add Your own attribution
bbc6da
          notices within Derivative Works that You distribute, alongside
bbc6da
          or as an addendum to the NOTICE text from the Work, provided
bbc6da
          that such additional attribution notices cannot be construed
bbc6da
          as modifying the License.
bbc6da
bbc6da
      You may add Your own copyright statement to Your modifications and
bbc6da
      may provide additional or different license terms and conditions
bbc6da
      for use, reproduction, or distribution of Your modifications, or
bbc6da
      for any such Derivative Works as a whole, provided Your use,
bbc6da
      reproduction, and distribution of the Work otherwise complies with
bbc6da
      the conditions stated in this License.
bbc6da
bbc6da
   5. Submission of Contributions. Unless You explicitly state otherwise,
bbc6da
      any Contribution intentionally submitted for inclusion in the Work
bbc6da
      by You to the Licensor shall be under the terms and conditions of
bbc6da
      this License, without any additional terms or conditions.
bbc6da
      Notwithstanding the above, nothing herein shall supersede or modify
bbc6da
      the terms of any separate license agreement you may have executed
bbc6da
      with Licensor regarding such Contributions.
bbc6da
bbc6da
   6. Trademarks. This License does not grant permission to use the trade
bbc6da
      names, trademarks, service marks, or product names of the Licensor,
bbc6da
      except as required for reasonable and customary use in describing the
bbc6da
      origin of the Work and reproducing the content of the NOTICE file.
bbc6da
bbc6da
   7. Disclaimer of Warranty. Unless required by applicable law or
bbc6da
      agreed to in writing, Licensor provides the Work (and each
bbc6da
      Contributor provides its Contributions) on an "AS IS" BASIS,
bbc6da
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
bbc6da
      implied, including, without limitation, any warranties or conditions
bbc6da
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
bbc6da
      PARTICULAR PURPOSE. You are solely responsible for determining the
bbc6da
      appropriateness of using or redistributing the Work and assume any
bbc6da
      risks associated with Your exercise of permissions under this License.
bbc6da
bbc6da
   8. Limitation of Liability. In no event and under no legal theory,
bbc6da
      whether in tort (including negligence), contract, or otherwise,
bbc6da
      unless required by applicable law (such as deliberate and grossly
bbc6da
      negligent acts) or agreed to in writing, shall any Contributor be
bbc6da
      liable to You for damages, including any direct, indirect, special,
bbc6da
      incidental, or consequential damages of any character arising as a
bbc6da
      result of this License or out of the use or inability to use the
bbc6da
      Work (including but not limited to damages for loss of goodwill,
bbc6da
      work stoppage, computer failure or malfunction, or any and all
bbc6da
      other commercial damages or losses), even if such Contributor
bbc6da
      has been advised of the possibility of such damages.
bbc6da
bbc6da
   9. Accepting Warranty or Additional Liability. While redistributing
bbc6da
      the Work or Derivative Works thereof, You may choose to offer,
bbc6da
      and charge a fee for, acceptance of support, warranty, indemnity,
bbc6da
      or other liability obligations and/or rights consistent with this
bbc6da
      License. However, in accepting such obligations, You may act only
bbc6da
      on Your own behalf and on Your sole responsibility, not on behalf
bbc6da
      of any other Contributor, and only if You agree to indemnify,
bbc6da
      defend, and hold each Contributor harmless for any liability
bbc6da
      incurred by, or claims asserted against, such Contributor by reason
bbc6da
      of your accepting any such warranty or additional liability.
bbc6da
bbc6da
   END OF TERMS AND CONDITIONS
bbc6da
bbc6da
   APPENDIX: How to apply the Apache License to your work.
bbc6da
bbc6da
      To apply the Apache License to your work, attach the following
bbc6da
      boilerplate notice, with the fields enclosed by brackets "[]"
bbc6da
      replaced with your own identifying information. (Don't include
bbc6da
      the brackets!)  The text should be enclosed in the appropriate
bbc6da
      comment syntax for the file format. We also recommend that a
bbc6da
      file or class name and description of purpose be included on the
bbc6da
      same "printed page" as the copyright notice for easier
bbc6da
      identification within third-party archives.
bbc6da
bbc6da
   Copyright [yyyy] [name of copyright owner]
bbc6da
bbc6da
   Licensed under the Apache License, Version 2.0 (the "License");
bbc6da
   you may not use this file except in compliance with the License.
bbc6da
   You may obtain a copy of the License at
bbc6da
bbc6da
       http://www.apache.org/licenses/LICENSE-2.0
bbc6da
bbc6da
   Unless required by applicable law or agreed to in writing, software
bbc6da
   distributed under the License is distributed on an "AS IS" BASIS,
bbc6da
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bbc6da
   See the License for the specific language governing permissions and
bbc6da
   limitations under the License.