{
L2PetData[] petData = new L2PetData[levelEnd - levelStart + 1];
int value = 0;
for (int level = levelStart; level <= levelEnd; level++)
{
petData[level - 1] = new L2PetData();
petData[level - 1].setPetID(petID);
petData[level - 1].setPetLevel(level);
context.declareBean("level", new Double(level), Double.TYPE);
for (String stat : stats.keySet())