Update java examples to illustrate data source methods