IUserRoleManagement urAssoc = MapperRegistry.getInstance().getUserRoleAssociation();
urAssoc.insert(viewApiUser, viewerRole);
urAssoc.insert(viewApiUser, editorRole);
admService.add(viewerRole, viewApiUser);
admService.add(editorRole, viewApiUser);
admService.save(viewApiUser);
}
PaloConnection conToUse = null;
for (PaloConnection conn: admService.getConnections()) {
if (psd.host.equals(conn.getHost()) &&
psd.port.equals(conn.getService())) {