/**
* Converts a {@link ILayoutResult} to a {@link RenderSession}.
*/
private RenderSession convertToScene(ILayoutResult result) {
Result sceneResult;
ViewInfo rootViewInfo = null;
if (result.getSuccess() == ILayoutResult.SUCCESS) {
sceneResult = Status.SUCCESS.createResult();
ILayoutViewInfo oldRootView = result.getRootView();