public PolicySource selectPolicySource(
AbstractPoliciesConfiguration policies, boolean remote) {
// If the location is remote then do not try and create local policy
// sources.
PolicySource policySource = null;
if (policies instanceof JdbcPoliciesConfiguration) {
if (remote) {
throw new IllegalStateException("Remote projects cannot " +
"access policies in JDBC repository");
}