return true;
}
public void setFaultLocation(FaultLocation fl) {
List<Interceptor> interceptors = greeterBus.getInInterceptors();
FaultThrowingInterceptor fi = null;
for (Interceptor i : interceptors) {
if (i instanceof FaultThrowingInterceptor) {
interceptors.remove(i);
LOG.fine("Removed existing FaultThrowingInterceptor");
break;
}
}
fi = new FaultThrowingInterceptor(fl.getPhase());
if (null != fl.getBefore() && !"".equals(fl.getBefore())) {
fi.addBefore(fl.getBefore());
}
if (null != fl.getAfter() && !"".equals(fl.getAfter())) {
fi.addAfter(fl.getAfter());
}
interceptors.add(fi);
LOG.fine("Added FaultThrowingInterceptor to phase " + fl.getPhase());
}