[Demonstration 1]

[Buggy Method]
public void setRootType(String ty) {
    rootType = ResourceFactory.createResource(expandURI(ty));
}

[Buggy Hunk]
rootType = ResourceFactory.createResource( expandURI(ty) );

[Patch]
rootType = ty;

[Demonstration 2]

[Buggy Method]
public void buildTable() throws IOException, InvalidFileException, SQLException {
    String scriptFilePath = table.myPackage.model.project.sourceFolder + File.separator + Project.BUILD_SCRIPT_FOLDER + File.separator + step + File.separator + table.myPackage.name + File.separator + table.originalName + ".sql";
    String script = scriptFileReader.readScript(scriptFilePath);
    new JdbcRawCommand(dataSource, script).execute();
}

[Buggy Hunk]
String scriptFilePath = table.myPackage.model.project.sourceFolder + File.separator + Project.BUILD_SCRIPT_FOLDER + File.separator + step + File.separator + table.myPackage.name + File.separator + table.originalName + ".sql";

[Patch]
String scriptFilePath = table.myPackage.model.project.sourceFolder + File.separator + Project.BUILD_SCRIPT_FOLDER + File.separator + step + File.separator + table.myPackage.declaredName + File.separator + table.originalName + ".sql";