A Molecules property cdk:title (set with CDKConstans.Title) must be used to set Molecule Name in sd-file. However this is then also exported into the sd-file as a property which is undesired.
The proposed solution is to use white-listing for export properties. Only properties explicitly inputed into SdfWriter should be exported. This new behavior could be added with an extra constructor that takes a Set of properties. Using existing constructors keeps the old behavior.
When you are offering sd-files for download it is common to give the end-user the option of which properties to include. This selection could then be easily passed on to SdfWriter.