Renamed "context" to "namespace" for clarity and added Javadoc.