Program: 38225
Project: 38225
Buggy source:
/** 
 * Method used to create commands together with CommandFactory.
 * @param cmdt
 * @param json
 * @param restful
 * @return
 */
private Command createCommand(CommandType cmdt,String json,String restful){
  Command newCommand=null;
  if (cmdt == CommandType.LOGIN_COMMAND) {
    newCommand=cmdFactory.createLoginCommand(json,restful);
  }
 else   if (cmdt == CommandType.LOGOUT_COMMAND) {
    newCommand=cmdFactory.createLogoutCommand(restful);
  }
 else   if (cmdt == CommandType.RETRIEVE_EXPERIMENT_COMMAND) {
    newCommand=cmdFactory.createRetrieveExperimentCommand(json,restful);
  }
 else   if (cmdt == CommandType.EXPERIMENT_COMMAND) {
    newCommand=cmdFactory.createExperimentCommand(json,restful);
  }
 else   if (cmdt == CommandType.FILE_COMMAND) {
  }
 else   if (cmdt == CommandType.SEARCH_COMMAND) {
    newCommand=cmdFactory.createSearchCommand(json,restful);
  }
 else   if (cmdt == CommandType.USER_COMMAND) {
    newCommand=cmdFactory.createUserCommand(json,restful);
  }
 else   if (cmdt == CommandType.PROCESS_COMMAND) {
    newCommand=cmdFactory.createProcessCommand(json,restful);
  }
 else   if (cmdt == CommandType.SYSADM_COMMAND) {
    newCommand=cmdFactory.createSysadmCommand(json,restful);
  }
  return newCommand;
}

Fixed version (ground truth):
/** 
 * Method used to create commands together with CommandFactory.
 * @param cmdt
 * @param json
 * @param restful
 * @return
 */
private Command createCommand(CommandType cmdt,String json,String restful){
  Command newCommand=null;
  if (cmdt == CommandType.LOGIN_COMMAND) {
    newCommand=cmdFactory.createLoginCommand(json,restful);
  }
 else   if (cmdt == CommandType.LOGOUT_COMMAND) {
    newCommand=cmdFactory.createLogoutCommand(restful);
  }
 else   if (cmdt == CommandType.RETRIEVE_EXPERIMENT_COMMAND) {
    newCommand=cmdFactory.createRetrieveExperimentCommand(json,restful);
  }
 else   if (cmdt == CommandType.ADD_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.UPDATE_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.REMOVE_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.GET_FILE_FROM_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.ADD_FILE_TO_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.UPDATE_FILE_IN_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.DELETE_FILE_FROM_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.SEARCH_FOR_EXPERIMENT_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.CREATE_USER_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.UPDATE_USER_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.DELETE_USER_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.CONVERT_RAW_TO_PROFILE_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.GET_ANNOTATION_INFORMATION_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.ADD_ANNOTATION_FIELD_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.ADD_ANNOTATION_VALUE_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.REMOVE_ANNOTATION_FIELD_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.GET_ANNOTATION_PRIVILEGES_COMMAND) {
    newCommand=null;
  }
 else   if (cmdt == CommandType.UPDATE_ANNOTATION_PRIVILEGES_COMMAND) {
    newCommand=null;
  }
  return newCommand;
}