Utility function moved to  PhrescoUtil.java class