{
allocationSize = Integer.parseInt((String)properties.get("key-increment-by"));
}
catch (Exception e)
{
throw new ValueGenerationException(LOCALISER.msg("040006",properties.get("key-increment-by")));
}
}
else if (properties.get("key-cache-size") != null)
{
// Not provided "key-increment-by" so use previous name of "key-cache-size"
try
{
allocationSize = Integer.parseInt((String)properties.get("key-cache-size"));
}
catch (Exception e)
{
throw new ValueGenerationException(LOCALISER.msg("040006",properties.get("key-cache-size")));
}
}
if (properties.get("sequence-name") == null)
{
throw new ValueGenerationException(LOCALISER.msg("040007",properties.get("sequence-name")));
}
}
}