You shouldn't be using a constructor this way. You could use a static initialization method instead.