|| type == PropertyType.DECIMAL
|| type == PropertyType.LONG
|| type == PropertyType.BOOLEAN
|| type == PropertyType.REFERENCE
|| type == PropertyType.WEAKREFERENCE) {
throw new InvalidQueryException("Invalid name value: " + string);
}
try {
Name name = session.getQName(string);
Term uri = new Term(NAMESPACE_URI, name.getNamespaceURI());
Term local = new Term(LOCAL_NAME, name.getLocalName());
BooleanQuery query = new BooleanQuery();
query.add(new JackrabbitTermQuery(uri), MUST);
query.add(new JackrabbitTermQuery(local), MUST);
return query;
} catch (IllegalNameException e) {
throw new InvalidQueryException("Illegal name: " + string, e);
}
}