title: spring profile groups
body: <p>I have an application, for which I can specify the profiles I want to run it on.
  but I also want to group these profiles into things like credentails, application performance, memory-print, application behaviour etc.
  Ex. I can run the following profiles</p>
  
  <pre><code>-Dspring.profiles.active=production,cached-local,db-connection-pooled...
  </code></pre>
  
  <p>but I would prefer initializing it as</p>
  
  <pre><code>-Dspring.profiles.active=production,super-fast
  #the above activates method level caches, db connection pooling etc
  #super-fast triggered activation of cached-local, db-connection-pooled profiles
  </code></pre>
  
  <p>or</p>
  
  <pre><code>-Dspring.profiles.active=dev,low-footprint
  #the above dosent enable caching, or db connection pooling
  </code></pre>
  
  <p>can this be achieved without writing any custom code like 
  <a href="https://stackoverflow.com/questions/8587489/how-to-set-active-spring-3-1-environment-profile-via-a-properites-file-and-not-v">How to set active spring 3.1 environment profile via a properites file and not via an env variable or system property</a>.
  I am fine even if I can load these from properties files or inside spring-xml config.
  I am using xml only config on spring 3.1.</p>