final long lifeSpan = 15 * 60 * 1000L; // 15min
final long maxIdle = 5 * 60 * 1000L; // 5min
if (!client.isLocalCache(cacheContainerName, localCacheName)) {
ModelNode request = client.createNewLocalCacheRequest(cacheContainerName, localCacheName, null, null, null,
lifeSpan, maxIdle, null);
ModelNode results = client.execute(request);
if (!MessagingJBossASClient.isSuccess(results)) {
throw new FailureException(results, "Failed to create Local Cache [" + localCacheName + "]");
} else {
LOG.info("Local Cache [" + localCacheName + "] created");
}