Java sample with project patterns