try {
String key = propertyKeys[i];
foreignPropertySet.setPropertyValue(key,xPropertySet.getPropertyValue(key));
}
catch(Exception exception) {
OfficeException officeException = new OfficeException(exception.getMessage());
officeException.initCause(exception);
throw officeException;
}
}
}