(signet.newPermission("my_id0000", subsystem0, Status.ACTIVE));
(signet.newPermission(subsystem0, "my_id0000", Status.ACTIVE));
private static void createTestData(Signet signet)throws ObjectNotFoundException{  Subsystem subsystem0  	= signet.newSubsystem("my_id0", "my_name0", "my_helptext0");  Subsystem subsystem1		= signet.newSubsystem("my_id1", "my_name1", "my_helptext1");  Subsystem subsystem2		= signet.newSubsystem("my_id2", "my_name2", "my_helptext2");  Category category00   	= signet.newCategory(subsystem0, "my_id00", "my_name00", Status.ACTIVE);  Category category01   	= signet.newCategory(subsystem0, "my_id01", "my_name01", Status.ACTIVE);  Category category02   	= signet.newCategory(subsystem0, "my_id02", "my_name02", Status.ACTIVE);   Function function000             = signet.newFunction             		(category00,              		 "my_id000",              		 "my_name000",              		 Status.ACTIVE,             		 "my_helptext000");  Function function001             = signet.newFunction             		(category00,              		 "my_id001",              		 "my_name001",              		 Status.ACTIVE,             		 "my_helptext001");  Function function002             = signet.newFunction             		(category00,              		 "my_id002",              		 "my_name002",              		 Status.ACTIVE,             		 "my_helptext002");    function000.addPermission  	(signet.newPermission("my_id0000", subsystem0, Status.ACTIVE));  function000.addPermission  	(signet.newPermission("my_id0001", subsystem0, Status.ACTIVE));  function000.addPermission  	(signet.newPermission("my_id0002", subsystem0, Status.ACTIVE));  Tree tree00  	= signet.newTree  			("my_id00", "my_name00");  subsystem0.setTree(tree00);  TreeNode treeNode00  	= signet.newTreeNode(tree00, "my_id00", "my_name00");  tree00.addRoot(treeNode00);    TreeNode treeNode000  	= signet.newTreeNode(tree00, "my_id000", "my_name000");  TreeNode treeNode001		= signet.newTreeNode(tree00, "my_id001", "my_name001");  TreeNode treeNode002		= signet.newTreeNode(tree00, "my_id002", "my_name002");    treeNode00.addChild(treeNode000);  treeNode00.addChild(treeNode001);  treeNode00.addChild(treeNode002);    TreeNode treeNode0000   	= signet.newTreeNode  			(tree00, "my_id0000", "my_name0000");  TreeNode treeNode0001		= signet.newTreeNode				(tree00, "my_id0001", "my_name0001");  TreeNode treeNode0002		= signet.newTreeNode				(tree00, "my_id0002", "my_name0002");    treeNode000.addChild(treeNode0000);  treeNode000.addChild(treeNode0001);  treeNode000.addChild(treeNode0002);    TreeNode treeNode00000  	= signet.newTreeNode  			(tree00,  			 "my_id00000",  			 "my_name00000");  TreeNode treeNode00001		= signet.newTreeNode				(tree00,				 "my_id00001",				 "my_name00001");  TreeNode treeNode00002		= signet.newTreeNode				(tree00,				 "my_id00002",				 "my_name00002");    treeNode0000.addChild(treeNode00000);  treeNode0000.addChild(treeNode00001);  treeNode0000.addChild(treeNode00002);    Subject subject0 = null;  Subject subject1 = null;  //  try//  {    subject0    	= signet.newSubject    			("my_id0", "my_name0", "Test Subject", "subject0");    subject1    	= signet.newSubject    			("my_id1", "my_name1", "Test Subject", "subject1");//  }//  catch (OperationNotSupportedException onse)//  {//    System.out.println//    	("<<ERROR>> - tried to create a new Subject in a read-only"//    	 + " Subject repository: "//    	 + onse);//  }    subsystem0.setTree(tree00);    signet.save(subsystem0);  signet.save(subsystem1);  signet.save(subsystem2);  signet.save(subject0);  signet.save(subject1);    if ((treeNode000.isAncestorOf(treeNode00000))      && !(treeNode00000.isAncestorOf(treeNode000)))  {    System.out.println("TreeNode.isAncestorOf works properly.");  }  else  {    System.out.println("<<ERROR>> - TreeNode.isAncestorOf FAILED");  }    if ((treeNode00000.isDescendantOf(treeNode000))      && !(treeNode000.isDescendantOf(treeNode000)))  {    System.out.println("TreeNode.isDescendantOf works properly.");  }  else  {    System.out.println("<<ERROR>> - TreeNode.isDescendantOf FAILED");  }}