}
@Override
public <T> T createService(Class<T> clazz) {
if (WanReplicationService.class.isAssignableFrom(clazz)) {
return (T) new WanReplicationServiceImpl(node);
} else if (ICacheService.class.isAssignableFrom(clazz)) {
return (T) new CacheService();
}
throw new IllegalArgumentException("Unknown service class: " + clazz);
}