public DBCompound getCompound(final String ID, ParameterSet parameters)
throws IOException {
LOG.finest("Fetching compound info for CSID #" + ID);
final MassSpecAPISoap massSpec = createMassSpecAPI();
// Get security token.
final String token = parameters.getParameter(
ChemSpiderParameters.SECURITY_TOKEN).getValue();
// Fetch compound info.
ExtendedCompoundInfo info = null;
try {
info = massSpec.getExtendedCompoundInfo(Integer.valueOf(ID), token);
} catch (final RemoteException e) {
// We need to catch exceptions here - usually from deprecated
// structures in the ChemSpider database or
// invalid security token.