in src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java [69:86]
public static void writeSlingId(final File idFile, final String id) throws IOException {
idFile.delete();
idFile.getParentFile().mkdirs();
DataOutputStream dos = null;
try {
final byte[] rawBytes = id.getBytes("ISO-8859-1");
dos = new DataOutputStream(new FileOutputStream(idFile));
dos.write(rawBytes, 0, rawBytes.length);
dos.flush();
} finally {
if (dos != null) {
try {
dos.close();
} catch (IOException ignore) {
}
}
}
}