if (!chunkElements.isEmpty()) {
chunkElementParser.parse(chunkElements.get(0), bd, parserContext, stepUnderspecified);
}
else {
BeanMetadataElement bme = null;
if (StringUtils.hasText(taskletRef)) {
bme = new RuntimeBeanReference(taskletRef);
}
else if (beanElements.size() == 1) {
Element beanElement = beanElements.get(0);