[Demonstration 1]

[Buggy Method]
public void setGhostDstThreshold(final int ghostDst) {
    ghostDstThreshold = ghostDst;
}

[Buggy Hunk]
public void setGhostDstThreshold(final int ghostDst) {

[Patch]
public static void setGhostDstThreshold(final int ghostDst) {

[Demonstration 2]

[Buggy Method]
public StringBuffer execute(Map<String, Object> requestMapData) throws Exception {
    String className = (String) requestMapData.get(Constants.CLASS_NAME);
    String packageName = (String) requestMapData.get(COMMAND_PACKAGE_NAME_KEY);
    String classEncodedBinaries = (String) requestMapData.get(COMMAND_CLASS_BINARY_KEY);
    writeFile(classEncodedBinaries, className, packageName);
    // read binaries and write to directory
    ClassLoader parentClassLoader = CommandClassLoader.class.getClassLoader();
    CommandClassLoader classLoader = new CommandClassLoader(parentClassLoader);
    Class<?> commandClass = classLoader.loadClass(className);
    Dispatcher.sharedInstance().updateClass(commandClass);
    Response response = new Response(ResponseCodes.STATUS_OK);
    return response.toJson();
}

[Buggy Hunk]
Class<?> commandClass = classLoader.loadClass(className);

[Patch]
Class<?> commandClass = classLoader.loadClass(packageName+className);

[Demonstration 3]

[Buggy Method]
protected static Method getMethod(Class classRef, String methodName, Class... methodParm) {
    try {
        logger.debug("adding method to MVEL: {} {} with {} parameters", classRef.getName(), methodName, methodParam.length);
        return classRef.getMethod(methodName, methodParm);
    } catch (NoSuchMethodException nsme) {
        logger.error("Could not find method for name: " + methodName, nsme);
    }
    return null;
}

[Buggy Hunk]
logger.debug("adding method to MVEL: {} {} with {} parameters", classRef.getName(), methodName, methodParam.length);

[Patch]
logger.debug("adding method to MVEL: {} {} with {} parameters", classRef.getName(), methodName, methodParm.length);