public void saveMuffins()
{
ui.debug("Saving muffins"); //$NON-NLS-1$
PersistenceService ps = null;
BasicService bs = null;
try
{
ps = (PersistenceService) ServiceManager.lookup("javax.jnlp.PersistenceService"); //$NON-NLS-1$
bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService"); //$NON-NLS-1$
}
catch (UnavailableServiceException e)
{
ui.error(Messages.getString("error.failedToSaveSettings"), e); //$NON-NLS-1$
return;
}
// We store a properties file in the "configuration" address.
try
{
URL config = new URL(bs.getCodeBase(), "configuration"); //$NON-NLS-1$
FileContents contents = getOrCreateFile(ps, config);
if (contents == null)
{
return;
}