RelativePosition relative = RelativePosition.fromString(KongaXmlUtils.getChildElementValue(
posElement, XmlConstants.RELATIVE_POSITION));
boolean optional = Boolean.parseBoolean(KongaXmlUtils.getChildElementValue(
posElement, XmlConstants.OPTIONAL));
if ((subject != null) && (relative != null)) {
return new PipelinePosition(pluginId, subject, relative, execOrder, optional);
}
} catch (Exception ex) {
// TODO: The original SAX parser ignored this exception. In a way that makes sense,
// because we don't want to abort the entire plugin loading just because of one invalid
// entry, but at the very least we should log it.