if (!shouldOutputPropertyMap(context) || permutationsUtil.getPermutationsMap() == null
|| permutationsUtil.getPermutationsMap().isEmpty()) {
return;
}
PropertiesMappingArtifact mappingArtifact =
new PropertiesMappingArtifact(CrossSiteIframeLinker.class, permutationsUtil
.getPermutationsMap());
toReturn.add(mappingArtifact);
EmittedArtifact serializedMap;
try {
String mappings = mappingArtifact.getSerialized();
mappings = mappings.concat("Devmode:" + getHostedFilename());
serializedMap = emitString(logger, mappings, "compilation-mappings.txt");
// TODO(unnurg): make this Deploy
serializedMap.setVisibility(Visibility.Public);
toReturn.add(serializedMap);