Always preserve target class for configuration classes in case of auto-proxying

Issue: SPR-10561
Fixed javadoc