L2Clan leaderclan = ClanTable.getInstance().getClan(activeChar.getAllyId());
if(activeChar.getClanId() != leaderclan.getClanId() || !activeChar.isClanLeader())
return;
CrestCache crestCache = CrestCache.getInstance();
int newId = IdFactory.getInstance().getNextId();
if(!crestCache.saveAllyCrest(newId, _data))
{
_log.log(Level.INFO, "Error loading crest of ally:" + leaderclan.getAllyName());
return;
}
if(leaderclan.getAllyCrestId() != 0)
{
crestCache.removeAllyCrest(leaderclan.getAllyCrestId());
}
Connection con = null;
try