String viewIdParam = Window.Location.getParameter(VIEW_ID);
if (viewIdParam != null) {
Long viewID = Long.parseLong(viewIdParam);
// XXX potential parsing exception
LoadViewAsWorkspaceCommand loadWorkspaceCommand = new LoadViewAsWorkspaceCommand(
viewID, viewLoader);
asyncCommandExecutor.execute(loadWorkspaceCommand);
} else {
String workspaceIdParam = Window.Location
.getParameter(WORKSPACE_ID);