STS-3560: ClassCastException adding or removing config files from a
config set with a profile 
https://issuetracker.springsource.com/browse/STS-3560