if (getUserPrincipal() == null) {
throw new OpenGammaRuntimeException("Cannot operate, failed user authentication.");
}
FudgeMsg msg = msgEnvelope.getMessage();
CogdaLiveDataCommandResponseMessage response = null;
switch (CogdaMessageType.getFromMessage(msg)) {
case SNAPSHOT_REQUEST:
response = handleSnapshotRequest(fudgeContext, msg);
break;
case SUBSCRIPTION_REQUEST: