sInstallationFolder = xFolderPicker.getDirectory();
if (m_oIntrospector.isValidSDKInstallationPath(sInstallationFolder)){
XNameAccess xNameAccess = getConfigurationAccess(true);
XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xNameAccess);
xPropertySet.setPropertyValue("SDKPath", sInstallationFolder);
XChangesBatch xBatch = (XChangesBatch) UnoRuntime.queryInterface(XChangesBatch.class, xNameAccess);
xBatch.commitChanges();
}
else{
XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xFolderPicker);
Object oWindow = xPropertySet.getPropertyValue("Window");
XWindowPeer xWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, oWindow);