@Override
public RetentionStaticConfig build() throws InvalidConfigException
{
try
{
RetentionType type = RetentionType.valueOf(retentionType);
return new RetentionStaticConfig(type, retentionQuantity);
} catch (Exception ex) {
throw new InvalidConfigException(ex);
}
}