return pa;
}
public static PublisherAssertion getPubAssertionFromJAXRAssociationKey(
String key) throws JAXRException {
PublisherAssertion pa = objectFactory.createPublisherAssertion();
try {
StringTokenizer token = new StringTokenizer(key, "|");
if (token.hasMoreTokens()) {
pa.setFromKey(getToken(token.nextToken()));
pa.setToKey(getToken(token.nextToken()));
KeyedReference kr = objectFactory.createKeyedReference();
// Sometimes the Key is UUID:something
String str = getToken(token.nextToken());
if ("UUID".equals(str))
str += ":" + getToken(token.nextToken());
kr.setTModelKey(str);
kr.setKeyName(getToken(token.nextToken()));
kr.setKeyValue(getToken(token.nextToken()));
pa.setKeyedReference(kr);
}
} catch (Exception ud) {
throw new JAXRException("Apache JAXR Impl:", ud);
}