private void writeLine(String line) {
            append(String.format("%s%n", line));
        }
ProfilesConfigFileWriter still deals with legacy {@link Profile} interface so it can only
modify credential related properties. All other properties should be preserved when
modifying profiles.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/ProfilesConfigFileWriter.java