public class DispatchServiceImpl extends AbstractDispatchService implements DispatchService {
private final static Logger LOGGER = LoggingManager.getLogger(DispatchServiceImpl.class.getName());
protected ContentReference dispatch(UAK uak, String visibility, String org, String mod, String rev, String path) {
String request = getRequest(uak, visibility, org, mod, rev, path);
Server master = WOJServer.getInstance().getServerManagementService().getCurrentMaster();
if (master == null) {
LOGGER.info("impossible to forward "+request+" to master, we don't know who it is");
throw new IllegalStateException("master is not known for the moment, impossible to forward a request");
} else {
LOGGER.info("forwarding "+request+" to master: "+master);