Copied from the maintenance branch. NOTE: These files don't have the Apache License header, yet. This is a TODO!