Gridlastic java code example.