else if (jpe instanceof NucleusObjectNotFoundException)
{
//sadly JDOObjectNotFoundException dont allow nested exceptions and failed objects together
if (jpe.getFailedObject() != null)
{
return new JDOObjectNotFoundException(jpe.getMessage(), jpe.getFailedObject());
}
else if (jpe.getNestedExceptions() != null)
{
return new JDOObjectNotFoundException(jpe.getMessage(), jpe.getNestedExceptions());
}
else
{
return new JDOObjectNotFoundException(jpe.getMessage(), new Throwable[]{jpe});
}
}
else if (jpe instanceof NucleusUserException)
{
if (jpe.isFatal())