AssetBuilder assetBuilder = AssetBuilderFactory.getAssetBuilder(name);
BasicFileAttributes attrs = getFileSystem(file.toUri().toString()).provider().readAttributes(file, BasicFileAttributes.class);
assetBuilder.uniqueId(encodeUniqueId(file.toUri().toString()))
.location(location)
.creationDate(attrs.creationTime() == null ? "" : new Date(attrs.creationTime().toMillis()).toString())
.lastModificationDate(attrs.lastModifiedTime() == null ? "" : new Date(attrs.lastModifiedTime().toMillis()).toString())
// TODO some provider specific details
.description("")
.owner("");
if (loadContent) {