* was not declared or creating the instance caused an exception.
*/
public JMHandler getJMHandler(QName pQName) throws UnmarshalException {
JMManager mgr = getManagerByQName(pQName);
if (mgr == null) {
throw new UnmarshalException("No manager configured for " + pQName);
}
Class c = mgr.getHandlerClass();
if (c == null) {
throw new UnmarshalException("No handler class configured for " + pQName);
}
try {
return (JMHandler) c.newInstance();
} catch (Exception e) {
throw new UnmarshalException("Could not instantiate handler class " +
c.getName(), e);
}
}