Move updateSource() out of loop.
Add parameter and return type support to Java DocDb.
Oops: classes are class in DocDb.