}
@Override
public Installation findInstallationForVariantByDeviceToken(String variantID, String deviceToken) {
Installation entity = getSingleResultForQuery(createQuery("select installation from Installation installation " +
" join installation.variant abstractVariant" +
" where abstractVariant.variantID = :variantID" +
" and installation.deviceToken = :deviceToken")
.setParameter("variantID", variantID)
.setParameter("deviceToken", deviceToken));