* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
public <T extends Throwable> ExceptionMapper<T> getExceptionMapper(Class<T> type)
{
ObjectFactory pf = exceptionMappers.get(type);
if (pf != null)
{
return (ExceptionMapper<T>)pf.getInstance(ApplicationContextImpl.getCurrent());
}
return null;
}