This is precisely about the quality of the documentation and the provided example. A simple C# example is included and works in Java with minor modifications. It's at the end of the article.
Fill in the blanks.
Most famously, IBM insisted on paying Microsoft by kLOC for their work on OS/2, and we all know how that turned out.
Most programmers get paid by the hour, and consistently produce about the same number of lines of code per hour.
Most large contracts are billed according to the perceived magnitude of the task. The value to the client is more important than the cost to the contractor, but the cost is still a factor. And for a contractor who has already decided which programmers will work with which tools, that cost is directly proportional to lines of code.