if (isTimeoutPending(timeStart)) {
return newStackWithStatus(StackStatus.CREATE_FAILED,
"stack create timeout");
}
Stack stack = null;
try {
stack = getStack();
} catch (final Exception e) {
return newStackWithStatus(StackStatus.CREATE_FAILED,
e.toString());
}
if (!isStackValid(stack)) {
return newStackWithStatus(StackStatus.CREATE_FAILED,
"stack create invalid/missing");
}
final StackStatus status = StackStatus.fromValue(stack
.getStackStatus());
switch (status) {
case CREATE_IN_PROGRESS:
final long timeCurrent = System.currentTimeMillis();