this,
getBean(),
getPropertyName(),
0);
if (!success) {
throw new JXPathException(
"Factory could not create an object for path: " + asPath());
}
collection = getBaseValue();
}
if (index != WHOLE_COLLECTION) {
if (index < 0) {
throw new JXPathException("Index is less than 1: " + asPath());
}
if (index >= getLength()) {
collection = ValueUtils.expandCollection(collection, index + 1);
handler.setProperty(getBean(), getPropertyName(), collection);