* Instantiates a new my cookie store.
*
* @throws IOException Signals that an I/O exception has occurred.
*/
MyCookieStore() throws IOException {
final AgentHost host = AgentHost.getInstance();
StateFactory factory = null;
if (host.getConfig() != null) {
factory = host.getStateFactoryFromConfig(host.getConfig(),
"cookies");
}
if (factory == null) {
factory = host.getStateFactory();
}
if (factory.exists(COOKIESTORE)) {
myState = factory.get(COOKIESTORE);
} else {
myState = factory.create(COOKIESTORE);