STS-3332: deleting a Java config class also removes it from the project beans configurations