Java version of the context library

A Java implementation of the context library, with the same
functionality and properties of the .NET implementation.