// define CAS Pool in the CasManager
try {
getResourceManager().getCasManager().defineCasPool(this, mCasPoolSize,
mPerformanceTuningSettings);
} catch (ResourceInitializationException e) {
throw new UIMARuntimeException(e);
}
mCasPoolCreated = true;
}
//check if component has exceeded its CAS pool
if (mOutstandingCASes.size() == mCasPoolSize) {
throw new UIMARuntimeException(UIMARuntimeException.REQUESTED_TOO_MANY_CAS_INSTANCES,
new Object[] { getQualifiedContextName(), Integer.toString(mCasPoolSize + 1),
Integer.toString(mCasPoolSize) });
}
CasManager casManager = getResourceManager().getCasManager();
// CAS cas = casManager.getCas(getQualifiedContextName());