Modify backgroundtask and page authentication.
Convert to JPA Criteria API.