New Java generic sample