class ProfileUsersKtrl extends BaseKontroller {

    private static final Logger log = LoggerFactory.getLogger(ProfileUsersKtrl.class);

    @Model(name = "profile")
    Profile profile;
    @Model(name = "sortedSet")
    SortedSet sortedSet = new SortedSet();
    @Model(name = "userSelectId")
    List<Long> userSelectId = new ArrayList<>();

    public ProfileUsersKtrl(HttpServletRequest request, HttpServletResponse response) {
        super(request, response);
    }

    @Kontrol(path = "/manage/viewProfileUsers", method = MethodType.GET)
    public String viewProfileUsers() throws ServletException {
        if (profile != null && profile.getId() != null) {
            try {
                profile = ProfileDB.getProfile(profile.getId());
                sortedSet = UserDB.getAdminUserSet(sortedSet, profile.getId());
            } catch (SQLException | GeneralSecurityException ex) {
                log.error(ex.toString(), ex);
                throw new ServletException(ex.toString(), ex);
            }

        }
        return "/manage/view_profile_users.html";
    }

    @Kontrol(path = "/manage/assignUsersToProfile", method = MethodType.POST)
    public String assignSystemsToProfile() throws ServletException {<FILL_FUNCTION_BODY>}


}


        if (userSelectId != null) {
            try {
                UserProfileDB.setUsersForProfile(profile.getId(), userSelectId);
            } catch (SQLException | GeneralSecurityException ex) {
                log.error(ex.toString(), ex);
                throw new ServletException(ex.toString(), ex);
            }
        }
        RefreshAuthKeyUtil.refreshProfileSystems(profile.getId());
        return "redirect:/manage/viewProfiles.ktrl";
    
<no_super_class>