TODO the following code is copied from AbstractSimpleBeanDefinitionParser
it can be removed if ever the doParse() method is not final!
or the Spring bug http://jira.springframework.org/browse/SPR-4599 is resolved