try {
List<FilePatch> filePatches = ShelveChangesManager.loadPatches(myPatchPath);
for(FilePatch patch: filePatches) {
<BUG>if (myPatchedFilePath.equals(patch.getBeforeName())) {
StringBuilder newText = new StringBuilder();
patch.applyModifications(baseContent, newText);
</BUG>
return newText.toString();
}
}

try {
List<FilePatch> filePatches = ShelveChangesManager.loadPatches(myPatchPath);
for(FilePatch patch: filePatches) {
if (myPatchedFilePath.equals(patch.getBeforeName())) {
if (patch.isNewFile()) {
return patch.getNewFileText();
