* @param identifier
* @return
*/
public int cloneCharacter(int iId) {
int lId = getMaxCharacterId()+1;
CharacterEntity lCharacterToClone = getCharacter(new Integer(iId));
CharacterEntity lNewCharacter = (CharacterEntity) lCharacterToClone.clone();
lNewCharacter.characterId = lId;
//don't use set character as it makes a clone
characters.put(new Integer(lId), lNewCharacter);
return lId;
}