}
public static IMoleculeSet readFolderWithTag(File folder, String tagPropertyName, String tag){
IMoleculeSet resultMol = new MoleculeSet();
for (File inputSDF : folder.listFiles()) {
try {
IteratingMDLReader reader = new IteratingMDLReader(new FileInputStream(inputSDF), DefaultChemObjectBuilder.getInstance());
while (reader.hasNext()) {
resultMol.addMolecule((IMolecule) reader.next());
//inputMolSet.getAtomContainer(inputMolSet.getMoleculeCount()).setProperty("DBSourceText", theDBSourceText);
}
} catch (Exception e) {
e.printStackTrace();
}