public class BasicClusterableRequestHandler implements ClusterableRequestHandler {
public void updateServer(DeploymentInfo deploymentInfo, ClusterableRequest req, ClusterableResponse res) {
Container container = deploymentInfo.getContainer();
if (container instanceof ClusteredRPCContainer) {
ClusteredRPCContainer clusteredContainer = (ClusteredRPCContainer) container;
URI[] locations = clusteredContainer.getLocations(deploymentInfo);
if (null != locations) {
ServerMetaData server = new ServerMetaData(locations);
if (req.getServerHash() != server.buildHash()) {
res.setServer(server);
}