Update CustomPageFactory.java