Is this safe? The enum could get loaded before spring init has finished