this code can probably go to EntityPage.java as getProcessPage