public static JDOException getJDOExceptionForNucleusException(NucleusException jpe)
{
// Specific exceptions first
if (jpe instanceof ClassNotPersistableException)
{
return new ClassNotPersistenceCapableException(jpe.getMessage(), jpe);
}
else if (jpe instanceof NoPersistenceInformationException)
{
return new org.datanucleus.jdo.exceptions.NoPersistenceInformationException(jpe.getMessage(), jpe);
}