conf.setProperty(LAST_UPDATE, System.currentTimeMillis() +""); conf.persist(new String[] {LAST_UPDATE});
    public void execute(Map arguments, Registry registry, Output output)                 throws Exception    {        EntryList entryList = (EntryList) arguments.get(PARAM_ENTRIES);                if ( entryList != null && entryList.size() > 0 ) {            Configuration conf = registry.getConfiguration();                        // shall existing entries get overwritten, or an exception thrown?            boolean force = Boolean.valueOf(conf.getProperty(ARG_FORCE, "false")).booleanValue();            boolean fetch = Boolean.valueOf(conf.getProperty(PROP_FETCH_CONTENT, "true")).booleanValue();            Entry[] entries = new Entry[0];            if ( fetch ) {                              URL[] urls = new URL[entryList.size()];                for ( int i = 0; i < entryList.size(); i++ ) {                    urls[i] = entryList.getEntry(i).getUrl();                }                                 UrlFetcher fetcher = (UrlFetcher) registry.getPlugin(Constants.PLUGIN_FETCHER);                entries = fetcher.fetch(urls);                                for ( int i = 0; i < entries.length; i++ ) {                    Entry entry = entryList.getEntry(entries[i].getUrl());                                        // overwrite the fetched values, if others have been provided (in entryList)                    if ( entry != null )                         entries[i].overwrite(entry);                }                                 }                         // now finally store entries in index            EntryStore store = (EntryStore) registry.getPlugin(Constants.PLUGIN_STORE);            entries = store.addEntries(entries, force);                        // output informative message to user            output.addOutputMessage("Number of added Entries: "+entries.length);            output.addEntries(entries);                    } else {            LOG.warn("Didn't add any Entries in "+getClass()+", as the list was empty!");            output.addOutputMessage("Didn't add any Entries, as the list was empty!");        }                    }