private ProtectionSet createProtectionSet(String cgName,URI projectURI) throws Exception {
  ProtectionSet protectionSet=new ProtectionSet();
  URI protectionSetURI=URIUtil.createId(ProtectionSet.class);
  protectionSet.setId(protectionSetURI);
  protectionSet.setLabel("ViPR-" + cgName);
  protectionSet.setProtectionId("790520997");
  protectionSet.setProtectionStatus("ENABLED");
  protectionSet.setProject(projectURI);
  protectionSet.setProtectionSystem(protectionSystemURI);
  _dbClient.createObject(protectionSet);
  return protectionSet;
}

private ProtectionSet createProtectionSet ( String cgName , URI projectURI ) throws Exception { ProtectionSet protectionSet = new ProtectionSet ( ) ; URI protectionSetURI = URIUtil . createId ( ProtectionSet . class ) ; protectionSet . setId ( protectionSetURI ) ; protectionSet . setLabel ( "ViPR-" + cgName ) ; protectionSet . setProtectionId ( "790520997" ) ; protectionSet . setProtectionStatus ( "ENABLED" ) ; protectionSet . setProject ( projectURI ) ; protectionSet . setProtectionSystem ( protectionSystemURI ) ; _dbClient . createObject ( protectionSet ) ; return protectionSet ; }
convenience method to create a protectionset .
