// Get the factory association.
FactoryAssociation association = getFactoryAssociation(factoryPid);
// Add a configuration object to the factory association.
association.addConfiguration(configuration);
}
// Store the configuration away, making sure that it does not clash
// with another configuration.
if (pid2Configuration.containsKey(pid)) {