STS-3533: add automatic detection of JavaConfig files 
https://issuetracker.springsource.com/browse/STS-3533