String[] listValues = null;
List<ConstructorArgumentValues.ValueHolder> conArgs =
beanDef.getConstructorArgumentValues().getGenericArgumentValues();
for (ConstructorArgumentValues.ValueHolder conArg : conArgs) {
if (conArg.getValue() instanceof TypedStringValue) {
TypedStringValue value = (TypedStringValue) conArg.getValue();
if (value.getValue().indexOf(".xml") != -1)
listValues = new String[]{value.getValue()};
}
if (conArg.getValue() instanceof ManagedList) {
Iterator itml = ((ManagedList)conArg.getValue()).iterator();
StringBuffer values = new StringBuffer();
while (itml.hasNext()) {
TypedStringValue next = (TypedStringValue)itml.next();
if (next.getValue().indexOf(".xml") != -1) {
values.append(next.getValue());
values.append("~");
}
}
listValues = (values.toString()).split("~");
}