Adds java examples for autoscale