refactor BookCatalogPortlet.java