Add enum to faciliate profile usage in java configuration