try {
IFile file = (IFile) policyResource;
// Read the model using JiBX
is = file.getContents();
ContentInput content = new BinaryContentInput(is);
InternalPolicyFactory policyFactory =
InternalPolicyFactory.getInternalInstance();
// Don't use schema validation, as we may have a partial layout,
// with missing attributes and empty formats.