public String getDialogPropertyValue(String dialogName, String propertyName){
String result = null;
XStringResourceWithLocation xResources = null;
String resRootUrl = m_xPIP.getPackageLocation("oxygenoffice.extensions.smart.SmART") + "/dialogs/";
try {
xResources = StringResourceWithLocation.create(m_xContext, resRootUrl, true, getLocation(), dialogName, "", null);
} catch (IllegalArgumentException ex) {
System.err.println(ex.getLocalizedMessage());
}
if(xResources != null){
String[] ids = xResources.getResourceIDs();
for (int i = 0; i < ids.length; i++)
if(ids[i].contains(propertyName))
result = xResources.resolveString(ids[i]);
}
return result;
}