{
returnData = IOUtils.getResourceAsString(file, getClass());
}
catch (IOException e)
{
throw new BeanCreationException("Failed to load test-data resource: " + file, e);
}
}
else
{
returnData = rData.getTextContent();
}
}
else if ("callback".equals(list.item(i).getLocalName()))
{
Element ele = (Element) list.item(i);
String c = ele.getAttribute("class");
try
{
EventCallback cb = (EventCallback)ClassUtils.instanciateClass(c);
props.put("eventCallback", cb);
}
catch (Exception e)
{
throw new BeanCreationException("Failed to load event-callback: " + c, e);
}
}
}