class ClouderaManagerDatabusService {

    AltusCredential getAltusCredential(Stack stack) {
        AltusCredential credential = createMachineUserAndGenerateKeys(stack);
        String accessKey = credential.getAccessKey();
        String privateKey = trimAndReplacePrivateKey(credential.getPrivateKey());
        return new AltusCredential(accessKey, privateKey.toCharArray());
    }

}