ImmutableMap<String, Object> callbackMap = ImmutableMap.<String, Object>of("id", requestId, "message", uri.getPath());
URI errorUri = uriInfo.getAbsolutePathBuilder()
.path(viewId)
.path(ViewResource.class, "getErrors")
.build();
UserPrincipal ogUserPrincipal = userName != null ? UserPrincipal.getLocalUser(userName) : UserPrincipal.getTestUser();
_viewManager.createView(viewRequest, clientId, ogUserPrincipal, connection, viewId, callbackMap,
portfolioGridUri.getPath(), primitivesGridUri.getPath(), errorUri.getPath());
return Response.status(Response.Status.CREATED).build();
}