}
else if ("throw".equals(id)) {
throw new ServiceException("some message", "another message");
}
else if ("unknown".equals(id)) {
UnknownSourceBean bean = new UnknownSourceBean();
bean.setSourceId("unknown");
bean.setErrorCode(888);
throw new UnknownSourceException("some message", bean);
}
return null;
}