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