byte[] sourceBytes = ChromiumDebugPluginUtil.readFileContents(data.getFile());
String sourceString = new String(sourceBytes);
JavaScriptFormatter.Result result = formatter.format(sourceString);
WorkspaceBridge workspaceRelations = data.getConnectedTargetData().getWorkspaceRelations();
String proposedFileName = data.getVmResource().getLocalVisibleFileName() +
Messages.TemporarilyFormatSourceAction_FORMATTER_SUFFIX;
MetadataImpl metadata = new MetadataImpl();
VmResource formattedResource =
workspaceRelations.createTemporaryFile(metadata, proposedFileName);
SourcePositionMapBuilder.MappingHandle mappingHandle;
try {
SourcePositionMapBuilder builder =
data.getConnectedTargetData().getSourcePositionMapBuilder();