}
else
if (busy.size() >= maxInstances) {
// CAUTION: ErrorCode.RESOURCE_EXHAUST is a well defined string which may not be changed, it is used from the caller to identify the situation
XmlBlasterException e = new XmlBlasterException("ResourceExhaust", "Sorry, " + maxInstances + " resources consumed, no more resources available");
e.changeErrorCode(ErrorCode.RESOURCE_EXHAUST);
throw e;
}
else {
instanceId = createId(instanceId);
Object resource = callback.toCreate(instanceId);