If this block is meant to just get the current timestamp, I think you can use a new Date() instead of creating a Calendar.