}
private static short getLocationTransparency(org.omg.CORBA.Policy[] policies) {
for (int i = 0; i < policies.length; i++) {
if (policies[i].policy_type() == LOCATION_TRANSPARENCY_POLICY_ID.value) {
LocationTransparencyPolicy policy = (LocationTransparencyPolicy) policies[i];
return policy.value();
}
}
return LOCATION_TRANSPARENCY_RELAXED.value;
}