ServiceInstance si = new ServiceInstance(
new URL(args[0]), args[1], args[2], true);
AuthorizationManager am = si.getAuthorizationManager();
int roleId = am.addAuthorizationRole("master1",
new String[] { "System.View", "System.Read",
"System.Anonymous", "Global.LogEvent" } );
//even if you just want to rename the role, you
// still need to provide full list of privileges