int queueSize = pool.getQueueLength().resolveModelAttribute(context, threadModel).asInt();
if (queueSize == 0) {
</BUG>
builder.addProperty(propertyPrefix + ".queue_enabled", Boolean.FALSE.toString());
} else {
<BUG>builder.addProperty(propertyPrefix + ".queue_enabled", Boolean.TRUE.toString());
builder.addProperty(propertyPrefix + ".queue_max_size", String.valueOf(queueSize));
}
}
if (pool.getKeepAliveTime().resolveModelAttribute(context, threadModel).isDefined()) {</BUG>
long keepAliveTime = pool.getKeepAliveTime().resolveModelAttribute(context, threadModel).asLong();

int queueSize = pool.getQueueLength().resolveModelAttribute(context, threadModel).asInt();
if (propertyPrefix.equals("timer")) {
builder.addProperty(propertyPrefix + ".queue_max_size", String.valueOf(queueSize));
} else if (queueSize == 0) {
builder.addProperty(propertyPrefix + ".queue_enabled", Boolean.FALSE.toString());
} else {
builder.addProperty(propertyPrefix + ".queue_enabled", Boolean.TRUE.toString())
.addProperty(propertyPrefix + ".queue_max_size", String.valueOf(queueSize));
}
long keepAliveTime = pool.getKeepAliveTime().resolveModelAttribute(context, threadModel).asLong();
