STS-3332: added some more test-cases to cover bean config sets with references to external bean configs (XML and Java)
use getElementResource now for error message as well in order to work with external files