}
else
{
if (!info.isNillable(name))
{
throw new XFireFault(
name.getLocalPart() + " is nil, but not nillable.",
XFireFault.SENDER);
}
childReader.readToEnd();
}
}
else
{
childReader.readToEnd();
}
}
return object;
}
catch (IllegalAccessException e)
{
throw new XFireFault("Illegal access. " + e.getMessage(), e, XFireFault.RECEIVER);
}
catch (InstantiationException e)
{
throw new XFireFault("Couldn't instantiate class. " + e.getMessage(), e,
XFireFault.SENDER);
}
catch (SecurityException e)
{
throw new XFireFault("Illegal access. " + e.getMessage(), e, XFireFault.RECEIVER);
}
catch (IllegalArgumentException e)
{
throw new XFireFault("Illegal argument. " + e.getMessage(), e, XFireFault.RECEIVER);
}
catch (InvocationTargetException e)
{
throw new XFireFault("Couldn't create class: " + e.getMessage(), e, XFireFault.RECEIVER);
}
}