ResourceCollection res = skin.getResource();
for (Iterator it = res.getKeys(); it.hasNext();)
{
String key = (String) it.next();
ResourceItem ri = res.getResourceItem(key);
Object object = ri.getObject();
if (object instanceof Icon)
{
ItemIconMgr.getInstance().registerIcon(skinName, key, (Icon) object);
}
}