class StackApiViewService {

    public boolean canChangeCredential(StackApiView stackApiView) {
        if (stackApiView.getStatus() != null) {
            if (stackApiView.getStatus() == Status.AVAILABLE) {
                return !flowLogService.isOtherNonTerminationFlowRunning(stackApiView.getId());
            }
        }
        return false;
    }

    public  StackApiViewService();

}