}
}
} else {
// the node that we're trying to publish
// doesn't have this language
throw new PublishingException(
"The node "
+ documentId
+ " doesn't contain a label for language "
+ language);
}
}
} else {
throw new PublishingException(
"No node found for the document " + documentId);
}
liveTree.save();
} catch (PublishingException e) {
throw e;
} catch (Exception e) {
throw new PublishingException("Couldn't publish to live tree :", e);
}
}