@Override
public RegisterResponse handleRegister(final RegisterMessage register, final String uaid) {
final String channelId = register.getChannelId();
final String endpointToken = generateEndpointToken(uaid, channelId);
final boolean saved = store.saveChannel(new DefaultChannel(uaid, channelId, endpointToken));
final Status status = saved ? new StatusImpl(200, "OK") : new StatusImpl(409, "Conflict: channeld [" + channelId + " is already in use");
return new RegisterResponseImpl(channelId, status, makeEndpointUrl(endpointToken));
}