* @throws JBIException
* @throws PropertySetNotFoundException
*/
private PropertySet createPropertySet(String propertySetName) throws JBIException , PropertySetNotFoundException{
PropertySet ps;
CachedXPathAPI xpath = new CachedXPathAPI();
StringBuffer xpathSB = new StringBuffer("//")
.append(XML_ELEMENT_NAME)
.append("[@name='")
.append(propertySetName)
.append("']");
try {
Node propertySetNode = xpath.selectSingleNode(xmlMPSdom,xpathSB.toString());
if (propertySetNode == null) {
throw new PropertySetNotFoundException("Could not find a property-set for [" + propertySetName + "] in " + xmlConfiguration.getFilename());
}
ps = new PropertySet(propertySetName,(Element) propertySetNode);
this.propertSets.put(propertySetName, ps);