LOGGER.error("(find) Version number is less than or equal to 0.0");
throw new IllegalArgumentException("Version number is less than or "
+ "equal to 0.0");
} else
{
Version version;
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<Version> cq = cb.createQuery(Version.class);
Root<Version> categoryRoot = cq.from(Version.class);
cq.where(cb.equal(categoryRoot.get("id"), versionNumber));
TypedQuery<Version> versionQuery = em.createQuery(cq);