Safely initialising your Java objects