// initialize
String resourceUrl = "";
String serviceType = "";
String serviceName = "";
DcList references = xRecord.getReferences();
// determine the service url, name and type
List<String> schemeVals = references.get(Scheme.SERVER.getUrn());
if (schemeVals.size() > 0) {
resourceUrl = Val.chkStr(schemeVals.get(0));
}
schemeVals = references.get(Scheme.SERVICE.getUrn());
if (schemeVals.size() > 0) {
serviceName = Val.chkStr((schemeVals.get(0)));
}
schemeVals = references.get(Scheme.SERVICE_TYPE.getUrn());
if (schemeVals.size() > 0) {
serviceType = Val.chkStr((schemeVals.get(0)));
}
if ((resourceUrl.length() > 0) && (serviceType.length() == 0)) {
serviceType = this.getResourceIdentifier().guessServiceTypeFromUrl(