Convert CTPBlock to a bean and use it correctly