* @param name the JNDI name that had been looked up.
* @param value the value returned from the JNDI lookup.
* @throws JDOFatalUserException.
*/
private static void handleUnexpectedInstance(String name, Object value) {
RuntimeException e = new JDOFatalUserException(
I18NHelper.getMessage(messages,
"ejb.jndi.unexpectedinstance", //NOI18N
name, value.getClass().getName()));
logger.severe(e.toString());
throw e;
}