try
{
List arguments = (List)envelope.getNodes();
Integer repositoryId = ((Node)arguments.get(0)).getId();
logger.info("repositoryId:" + repositoryId);
ViewSiteNodeTreeUCC viewSiteNodeTreeUCC = ViewSiteNodeTreeUCCFactory.newViewSiteNodeTreeUCC();
SiteNodeVO siteNodeVO = viewSiteNodeTreeUCC.getRootSiteNode(repositoryId, getInfoGluePrincipal());
logger.info("siteNodeVO:" + siteNodeVO.getSiteNodeId() + " " + siteNodeVO.getName());
Node node = new Node();
node.setId(siteNodeVO.getSiteNodeId());
node.setName(siteNodeVO.getName());
node.setIsBranch(siteNodeVO.getIsBranch());