return (millis < 0) ? System.currentTimeMillis() : millis;
}
private void touch(Resource r, long defaultTimestamp) {
if (fileNameMapper == null) {
FileProvider fp = (FileProvider) r.as(FileProvider.class);
if (fp != null) {
// use this to create file and deal with non-writable files
touch(fp.getFile(), defaultTimestamp);
} else {
((Touchable) r.as(Touchable.class)).touch(defaultTimestamp);
}
} else {
String[] mapped = fileNameMapper.mapFileName(r.getName());