+ /**
+ * Validates whether the legacy guard policy version is an integer.
+ *
+ * @param policyVersion the version of policy
+ *
+ * @throws PfModelException the PfModel parsing exception
+ */
+ private void validateLegacyGuardPolicyVersion(String policyVersion) throws PfModelException {
+
+ try {
+ Integer.valueOf(policyVersion);
+ } catch (NumberFormatException exc) {
+ throw new PfModelException(Response.Status.BAD_REQUEST,
+ "legacy policy version is not an integer", exc);
+ }
+ }
+