public static ConstraintsParameters loadPolicyData(InputStream policyDataStream){
  if (policyDataStream != null) {
    return load(policyDataStream);
  }
  if ((defaultPolicyConstraintsLocation != null) && !defaultPolicyConstraintsLocation.isEmpty()) {
    return load(defaultPolicyConstraintsLocation);
  }
  return null;
}

public static ConstraintsParameters loadPolicyData ( InputStream policyDataStream ) { if ( policyDataStream != null ) { return load ( policyDataStream ) ; } if ( ( defaultPolicyConstraintsLocation != null ) && ! defaultPolicyConstraintsLocation . isEmpty ( ) ) { return load ( defaultPolicyConstraintsLocation ) ; } return null ; }
this method loads the policy constraint file . if the validationpolicy is not specified then the default policy file is loaded .
