class StackUtil {

    public CloudCredential getCloudCredential(Stack stack) {
        Credential credential = credentialClientService.getByEnvironmentCrn(stack.getEnvironmentCrn());
        return credentialConverter.convert(credential);
    }

}