WTPart newpart = (WTPart)ViewHelper.service.newBranchForView((wt.vc.views.ViewManageable)wtpart, "Manufacturing");
newpart = (WTPart)PersistenceHelper.manager.save(newpart);
WTPart newpart = (WTPart)ViewHelper.service.newBranchForView((wt.vc.views.ViewManageable)wtpart, MANUFACTURING_VIEW_NAME);
String location =FolderHelper.service.getLocation((CabinetBased)wtpart );
Debug.out(CLASSNAME + "--> CreateNewView--> location="+location);
String parentLocation = location.substring( 0, location.lastIndexOf("/"));
System.out.println(CLASSNAME + "-->CreateNewView --> parentLocation :" + parentLocation);
String newViewLocation= parentLocation + "/" + "Menufacturing" ;
System.out.println(CLASSNAME + "--> --> newViewLocation:" + newViewLocation);
Folder folder=FolderHelper.service.getFolder(wtpart.getLocation(),wtpart.getContainerReference());
newpart.setFolderingInfo(FolderingInfo.newFolderingInfo(folder));