Adding readOnly to Criteria Building for unit testing