nus-yam/ex-repair huggingface dataset:
Program: 50840
Project: 50840
Buggy source:
/** 
 * {@inheritDoc}
 */
public void send(EventList events,int retriesLeft) throws Exception {
  javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
  if (_subject != null) {
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SUBJECTS,_subject);
    if (LOG.isLoggable(Level.FINEST)) {
      LOG.finest("String_Node_Str" + events + "String_Node_Str"+ _subject);
    }
  }
 else {
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,_networkName);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODES,_destinationNode);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SOURCE_NODE,_sourceNode);
    mesg.setIntProperty(JMSEPNManagerImpl.EPN_RETRIES_LEFT,retriesLeft);
    if (LOG.isLoggable(Level.FINEST)) {
      LOG.finest("String_Node_Str" + events + "String_Node_Str"+ _networkName+ "String_Node_Str"+ _destinationNode);
    }
  }
  _producer.send(mesg);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void send(EventList events,int retriesLeft) throws Exception {
  javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
  if (_subject != null) {
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SUBJECTS,_subject);
    if (LOG.isLoggable(Level.FINEST)) {
      LOG.finest("String_Node_Str" + events + "String_Node_Str"+ _subject);
    }
  }
 else {
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,_network.getName());
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_VERSION,_network.getVersion());
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODES,_destinationNode);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SOURCE_NODE,_sourceNode);
    mesg.setIntProperty(JMSEPNManagerImpl.EPN_RETRIES_LEFT,retriesLeft);
    if (LOG.isLoggable(Level.FINEST)) {
      LOG.finest("String_Node_Str" + events + "String_Node_Str"+ _network.getName()+ "String_Node_Str"+ _network.getVersion()+ "String_Node_Str"+ _destinationNode);
    }
  }
  _producer.send(mesg);
}
Program: 50841
Project: 50841
Buggy source:
/** 
 * This method adds a new instance of the Network to the list.
 * @param network The network
 */
public void add(Network network){
synchronized (_networks) {
    boolean f_inserted=false;
    for (int i=0; i < _networks.size(); i++) {
      if (NetworkUtil.isNewerVersion(_networks.get(i).getVersion(),network.getVersion())) {
        _networks.add(i,network);
        f_inserted=true;
        break;
      }
    }
    if (!f_inserted) {
      _networks.add(network);
    }
  }
}

Fixed version (ground truth):
/** 
 * This method adds a new instance of the Network to the list.
 * @param network The network
 */
public void add(Network network){
synchronized (_networks) {
    boolean inserted=false;
    for (int i=0; i < _networks.size(); i++) {
      if (NetworkUtil.isNewerVersion(_networks.get(i).getVersion(),network.getVersion())) {
        _networks.add(i,network);
        inserted=true;
        break;
      }
    }
    if (!inserted) {
      _networks.add(network);
    }
  }
}
Program: 50842
Project: 50842
Buggy source:
/** 
 * This method initializes the network.
 * @param container The container
 * @throws Exception Failed to initialize the network
 */
protected void init(EPNContainer container) throws Exception {
  for (  String name : _nodes.keySet()) {
    Node node=_nodes.get(name);
    if (node.getDestinationNodes() != null) {
      for (      String nodeName : node.getDestinationNodes()) {
        node.getChannels().add(container.getChannel(getName(),getVersion(),name,nodeName));
      }
    }
    if (node.getDestinationSubjects() != null) {
      for (      String subject : node.getDestinationSubjects()) {
        node.getChannels().add(container.getChannel(subject));
      }
    }
    node.init(container);
    if (name.equals(getRootNodeName())) {
      _root=node;
    }
  }
  if (_root == null) {
    throw new Exception("String_Node_Str" + getRootNodeName() + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * This method initializes the network.
 * @param container The container
 * @throws Exception Failed to initialize the network
 */
protected void init(EPNContainer container) throws Exception {
  for (  String name : _nodes.keySet()) {
    Node node=_nodes.get(name);
    if (node.getDestinationNodes() != null) {
      for (      String nodeName : node.getDestinationNodes()) {
        node.getChannels().add(container.getChannel(this,name,nodeName));
      }
    }
    if (node.getDestinationSubjects() != null) {
      for (      String subject : node.getDestinationSubjects()) {
        node.getChannels().add(container.getChannel(subject));
      }
    }
    node.init(container);
    if (name.equals(getRootNodeName())) {
      _root=node;
    }
  }
  if (_root == null) {
    throw new Exception("String_Node_Str" + getRootNodeName() + "String_Node_Str");
  }
}
Program: 50843
Project: 50843
Buggy source:
/** 
 * This method dispatches a set of events directly to the named network and node. If the node is not specified, then it will be dispatched to the 'root' node of the network.
 * @param networkName The name of the network
 * @param nodeName The optional node name, or root node if not specified
 * @param source The source node, or null if sending to root
 * @param events The list of events to be processed
 * @param retriesLeft The number of retries left, or -1 if should be max value
 * @throws Exception Failed to dispatch the events for processing
 */
protected void dispatch(String networkName,String nodeName,String source,EventList events,int retriesLeft) throws Exception {
  Node node=getNode(networkName,nodeName);
  if (retriesLeft == -1) {
    retriesLeft=node.getMaxRetries();
  }
  EventList retries=process(networkName,nodeName,node,source,events,retriesLeft);
  if (retries != null) {
    retry(networkName,nodeName,source,events,retriesLeft - 1);
  }
}

Fixed version (ground truth):
/** 
 * This method dispatches a set of events directly to the named network and node. If the node is not specified, then it will be dispatched to the 'root' node of the network.
 * @param networkName The name of the network
 * @param nodeName The optional node name, or root node if not specified
 * @param source The source node, or null if sending to root
 * @param events The list of events to be processed
 * @param retriesLeft The number of retries left, or -1 if should be max value
 * @throws Exception Failed to dispatch the events for processing
 */
protected void dispatch(String networkName,String nodeName,String source,EventList events,int retriesLeft) throws Exception {
  Node node=getNode(networkName,nodeName);
  if (retriesLeft == -1) {
    retriesLeft=node.getMaxRetries();
  }
  if (LOG.isLoggable(Level.FINEST)) {
    LOG.finest("String_Node_Str" + networkName + "String_Node_Str"+ nodeName+ "String_Node_Str"+ node+ "String_Node_Str"+ events+ "String_Node_Str"+ retriesLeft);
  }
  EventList retries=process(networkName,nodeName,node,source,events,retriesLeft);
  if (retries != null) {
    retry(networkName,nodeName,source,retries,retriesLeft - 1);
  }
}
Program: 50844
Project: 50844
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override protected void notifyEventsProcessed(String networkName,String nodeName,EventList events) throws Exception {
  javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
  mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,networkName);
  mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODE,nodeName);
  _notificationsProducer.send(mesg);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override protected void notifyEventsProcessed(String networkName,String nodeName,EventList events) throws Exception {
  if (LOG.isLoggable(Level.FINEST)) {
    LOG.finest("String_Node_Str" + networkName + "String_Node_Str"+ nodeName+ "String_Node_Str"+ events);
  }
  javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
  mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,networkName);
  mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODE,nodeName);
  _notificationsProducer.send(mesg);
}
Program: 50845
Project: 50845
Buggy source:
/** 
 * This method handles retrying the supplied set of events, if the number of retries left is greater than 0.
 * @param networkName The name of the network
 * @param nodeName The optional node name, or root node if not specified
 * @param source The source
 * @param events The events
 * @param retriesLeft The number of retries now remaining after this failure to process them
 * @throws Exception Failed to retry the events processing
 */
protected void retry(String networkName,String nodeName,String source,EventList events,int retriesLeft) throws Exception {
  if (retriesLeft > 0) {
    javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,networkName);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODE,nodeName);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SOURCE_NODE,source);
    mesg.setIntProperty(JMSEPNManagerImpl.EPN_RETRIES_LEFT,retriesLeft);
    _eventsProducer.send(mesg);
  }
 else {
    LOG.severe("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * This method handles retrying the supplied set of events, if the number of retries left is greater than 0.
 * @param networkName The name of the network
 * @param nodeName The optional node name, or root node if not specified
 * @param source The source
 * @param events The events
 * @param retriesLeft The number of retries now remaining after this failure to process them
 * @throws Exception Failed to retry the events processing
 */
protected void retry(String networkName,String nodeName,String source,EventList events,int retriesLeft) throws Exception {
  if (LOG.isLoggable(Level.FINEST)) {
    LOG.finest("String_Node_Str" + networkName + "String_Node_Str"+ nodeName+ "String_Node_Str"+ events+ "String_Node_Str"+ retriesLeft);
  }
  if (retriesLeft > 0) {
    javax.jms.ObjectMessage mesg=_session.createObjectMessage(events);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_NETWORK,networkName);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_DESTINATION_NODE,nodeName);
    mesg.setStringProperty(JMSEPNManagerImpl.EPN_SOURCE_NODE,source);
    mesg.setIntProperty(JMSEPNManagerImpl.EPN_RETRIES_LEFT,retriesLeft);
    _eventsProducer.send(mesg);
  }
 else {
    LOG.severe("String_Node_Str");
  }
}
Program: 50846
Project: 50846
Buggy source:
public void enqueue(String network,java.util.List<java.io.Serializable> events) throws Exception {
  Channel channel=_entryPoints.get(network);
  if (channel == null) {
    throw new Exception("String_Node_Str" + network + "String_Node_Str");
  }
  channel.send(new EventList(events));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void enqueue(String network,java.util.List<java.io.Serializable> events) throws Exception {
  Channel channel=_entryPoints.get(network);
  if (channel == null) {
    throw new Exception("String_Node_Str" + network + "String_Node_Str");
  }
  channel.send(new EventList(events));
}
Program: 50847
Project: 50847
Buggy source:
public Channel getChannel(String source,Destination dest) throws Exception {
  return (new EmbeddedChannel(dest.getNetwork(),dest.getNode(),getNode(dest.getNetwork(),dest.getNode()),source));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public Channel getChannel(String source,Destination dest) throws Exception {
  return (new EmbeddedChannel(dest.getNetwork(),dest.getNode(),getNode(dest.getNetwork(),dest.getNode()),source));
}
Program: 50848
Project: 50848
Buggy source:
public void unregister(String networkName) throws Exception {
  super.unregister(networkName);
  _entryPoints.remove(networkName);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void unregister(String networkName) throws Exception {
  super.unregister(networkName);
  _entryPoints.remove(networkName);
}
Program: 50849
Project: 50849
Buggy source:
public EmbeddedChannel(String networkName,String nodeName,Node node,String source){
  _networkName=networkName;
  _nodeName=nodeName;
  _node=node;
  _source=source;
}

Fixed version (ground truth):
/** 
 * The constructor.
 * @param networkName The network name
 * @param nodeName The node name
 * @param node The node
 * @param source The source node name
 */
public EmbeddedChannel(String networkName,String nodeName,Node node,String source){
  _networkName=networkName;
  _nodeName=nodeName;
  _node=node;
  _source=source;
}
Program: 50850
Project: 50850
Buggy source:
public void run(){
  EventList retries=null;
  try {
    retries=process(_networkName,_nodeName,_node,_source,_events,_retriesLeft);
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
    retries=_events;
  }
  if (retries != null) {
    if (_retriesLeft > 0) {
      try {
        _channel.send(retries,_retriesLeft - 1);
      }
 catch (      Exception e) {
        LOG.log(Level.SEVERE,"String_Node_Str",e);
      }
    }
 else {
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void run(){
  EventList retries=null;
  try {
    retries=process(_networkName,_nodeName,_node,_source,_events,_retriesLeft);
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
    retries=_events;
  }
  if (retries != null) {
    if (_retriesLeft > 0) {
      try {
        _channel.send(retries,_retriesLeft - 1);
      }
 catch (      Exception e) {
        LOG.log(Level.SEVERE,"String_Node_Str",e);
      }
    }
 else {
      LOG.severe("String_Node_Str");
    }
  }
}
Program: 50851
Project: 50851
Buggy source:
public EPNTask(String networkName,String nodeName,Node node,String source,EventList events,int retriesLeft,Channel channel){
  _networkName=networkName;
  _nodeName=nodeName;
  _node=node;
  _source=source;
  _events=events;
  _retriesLeft=retriesLeft;
  _channel=channel;
}

Fixed version (ground truth):
/** 
 * This is the constructor for the task.
 * @param networkName The network name
 * @param nodeName The node name
 * @param node The node
 * @param source The source node name
 * @param events The list of events
 * @param retriesLeft The number of retries left
 * @param channel The channel
 */
public EPNTask(String networkName,String nodeName,Node node,String source,EventList events,int retriesLeft,Channel channel){
  _networkName=networkName;
  _nodeName=nodeName;
  _node=node;
  _source=source;
  _events=events;
  _retriesLeft=retriesLeft;
  _channel=channel;
}
Program: 50852
Project: 50852
Buggy source:
protected EPNContext getContext(){
  return (_context);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
protected EPNContext getContext(){
  return (_context);
}
Program: 50853
Project: 50853
Buggy source:
public void close() throws Exception {
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void close() throws Exception {
}
Program: 50854
Project: 50854
Buggy source:
public void send(EventList events,int retriesLeft) throws Exception {
  _executor.execute(new EPNTask(_networkName,_nodeName,_node,_source,events,retriesLeft,this));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void send(EventList events,int retriesLeft) throws Exception {
  _executor.execute(new EPNTask(_networkName,_nodeName,_node,_source,events,retriesLeft,this));
}
Program: 50855
Project: 50855
Buggy source:
public void register(Network network) throws Exception {
  super.register(network);
  Node rootNode=network.getNodes().get(network.getRootNodeName());
  _entryPoints.put(network.getName(),new EmbeddedChannel(network.getName(),network.getRootNodeName(),rootNode,null));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void register(Network network) throws Exception {
  super.register(network);
  Node rootNode=network.getNodes().get(network.getRootNodeName());
  _entryPoints.put(network.getName(),new EmbeddedChannel(network.getName(),network.getRootNodeName(),rootNode,null));
}
Program: 50856
Project: 50856
Buggy source:
@PostConstruct public void init(){
  LOG.info("String_Node_Str");
  System.out.println("String_Node_Str");
  try {
    InitialContext context=new InitialContext();
    _epnManager=(JMSEPNManager)context.lookup("String_Node_Str");
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * The initialize method.
 */
@PostConstruct public void init(){
  LOG.info("String_Node_Str");
  try {
    InitialContext context=new InitialContext();
    _epnManager=(JMSEPNManager)context.lookup("String_Node_Str");
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}
Program: 50857
Project: 50857
Buggy source:
public EPNEventsServer(){
}

Fixed version (ground truth):
/** 
 * The default constructor.
 */
public EPNEventsServer(){
}
Program: 50858
Project: 50858
Buggy source:
public void onMessage(Message message){
  if (_epnManager != null) {
    _epnManager.handleEventsMessage(message);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void onMessage(Message message){
  if (_epnManager != null) {
    _epnManager.handleEventsMessage(message);
  }
}
Program: 50859
Project: 50859
Buggy source:
@PreDestroy public void close(){
  LOG.info("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * The close method.
 */
@PreDestroy public void close(){
  LOG.info("String_Node_Str");
}
Program: 50860
Project: 50860
Buggy source:
@PostConstruct public void init(){
  LOG.info("String_Node_Str");
  try {
    InitialContext context=new InitialContext();
    _epnManager=(JMSEPNManager)context.lookup("String_Node_Str");
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * The initialize method.
 */
@PostConstruct public void init(){
  LOG.info("String_Node_Str");
  try {
    InitialContext context=new InitialContext();
    _epnManager=(JMSEPNManager)context.lookup("String_Node_Str");
  }
 catch (  Exception e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}
Program: 50861
Project: 50861
Buggy source:
public void onMessage(Message message){
  if (_epnManager != null) {
    _epnManager.handleNotificationsMessage(message);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void onMessage(Message message){
  if (_epnManager != null) {
    _epnManager.handleNotificationsMessage(message);
  }
}
Program: 50862
Project: 50862
Buggy source:
@PreDestroy public void close(){
  LOG.info("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * The close method.
 */
@PreDestroy public void close(){
  LOG.info("String_Node_Str");
}
Program: 50863
Project: 50863
Buggy source:
public EPNNotificationServer(){
}

Fixed version (ground truth):
/** 
 * This is the default constructor.
 */
public EPNNotificationServer(){
}
Program: 50864
Project: 50864
Buggy source:
/** 
 * This is the constructor for the JMS channel.
 * @param session The session
 * @param producer The producer
 * @param source The source
 * @param destination The node destination
 */
public JMSChannel(javax.jms.Session session,javax.jms.MessageProducer producer,String source,Destination dest){
  _session=session;
  _producer=producer;
  _source=source;
  _destination=dest;
}

Fixed version (ground truth):
/** 
 * This is the constructor for the JMS channel.
 * @param session The session
 * @param producer The producer
 * @param source The source
 * @param dest The node destination
 */
public JMSChannel(javax.jms.Session session,javax.jms.MessageProducer producer,String source,Destination dest){
  _session=session;
  _producer=producer;
  _source=source;
  _destination=dest;
}
Program: 50865
Project: 50865
Buggy source:
public void writeExternal(ObjectOutput out) throws IOException {
  out.writeInt(VERSION);
  out.writeUTF(_id);
  out.writeLong(_timestamp);
  out.writeObject(_context);
  out.writeObject(_component);
  out.writeObject(_activityType);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void writeExternal(ObjectOutput out) throws IOException {
  out.writeInt(VERSION);
  out.writeUTF(_id);
  out.writeLong(_timestamp);
  out.writeObject(_context);
  out.writeObject(_component);
  out.writeObject(_activityType);
}
Program: 50866
Project: 50866
Buggy source:
public Activity(Activity act){
  _id=act._id;
  _timestamp=act._timestamp;
  if (act._context != null) {
    _context=new Context(act._context);
  }
  if (act._component != null) {
    _component=new Component(act._component);
  }
  _activityType=act._activityType;
}

Fixed version (ground truth):
/** 
 * The copy constructor.
 * @param act The activity to copy.
 */
public Activity(Activity act){
  _id=act._id;
  _timestamp=act._timestamp;
  if (act._context != null) {
    _context=new Context(act._context);
  }
  if (act._component != null) {
    _component=new Component(act._component);
  }
  _activityType=act._activityType;
}
Program: 50867
Project: 50867
Buggy source:
public String getId(){
  return (_id);
}

Fixed version (ground truth):
/** 
 * This method gets the activity id.
 * @return The id
 */
public String getId(){
  return (_id);
}
Program: 50868
Project: 50868
Buggy source:
public void setComponent(Component component){
  _component=component;
}

Fixed version (ground truth):
/** 
 * This method sets the component.
 * @param component The component
 */
public void setComponent(Component component){
  _component=component;
}
Program: 50869
Project: 50869
Buggy source:
public long getTimestamp(){
  return (_timestamp);
}

Fixed version (ground truth):
/** 
 * This method gets the timestamp.
 * @return The timestamp
 */
public long getTimestamp(){
  return (_timestamp);
}
Program: 50870
Project: 50870
Buggy source:
public ActivityType getActivityType(){
  return (_activityType);
}

Fixed version (ground truth):
/** 
 * This method gets the activity type.
 * @return The activity type
 */
public ActivityType getActivityType(){
  return (_activityType);
}
Program: 50871
Project: 50871
Buggy source:
public void setContext(Context context){
  _context=context;
}

Fixed version (ground truth):
/** 
 * This method sets the context.
 * @param context The context
 */
public void setContext(Context context){
  _context=context;
}
Program: 50872
Project: 50872
Buggy source:
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  in.readInt();
  _id=in.readUTF();
  _timestamp=in.readLong();
  _context=(Context)in.readObject();
  _component=(Component)in.readObject();
  _activityType=(ActivityType)in.readObject();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  in.readInt();
  _id=in.readUTF();
  _timestamp=in.readLong();
  _context=(Context)in.readObject();
  _component=(Component)in.readObject();
  _activityType=(ActivityType)in.readObject();
}
Program: 50873
Project: 50873
Buggy source:
public void setId(String id){
  _id=id;
}

Fixed version (ground truth):
/** 
 * This method sets the activity id.
 * @param id The id
 */
public void setId(String id){
  _id=id;
}
Program: 50874
Project: 50874
Buggy source:
public void setActivityType(ActivityType activityType){
  _activityType=activityType;
}

Fixed version (ground truth):
/** 
 * This method sets the activity type.
 * @param activityType The activity type
 */
public void setActivityType(ActivityType activityType){
  _activityType=activityType;
}
Program: 50875
Project: 50875
Buggy source:
public Component getComponent(){
  return (_component);
}

Fixed version (ground truth):
/** 
 * This method gets the component.
 * @return The component
 */
public Component getComponent(){
  return (_component);
}
Program: 50876
Project: 50876
Buggy source:
public Context getContext(){
  return (_context);
}

Fixed version (ground truth):
/** 
 * This method gets the context.
 * @return The context
 */
public Context getContext(){
  return (_context);
}
Program: 50877
Project: 50877
Buggy source:
public void setTimestamp(long timestamp){
  _timestamp=timestamp;
}

Fixed version (ground truth):
/** 
 * This method sets the timestamp.
 * @param timestamp The timestamp
 */
public void setTimestamp(long timestamp){
  _timestamp=timestamp;
}
Program: 50878
Project: 50878
Buggy source:
public String getProcessInstance(){
  return (_processInstance);
}

Fixed version (ground truth):
/** 
 * This method gets the process instance.
 * @return The process instance
 */
public String getProcessInstance(){
  return (_processInstance);
}
Program: 50879
Project: 50879
Buggy source:
public void setService(String service){
  _service=service;
}

Fixed version (ground truth):
/** 
 * This method sets the service.
 * @param service The service
 */
public void setService(String service){
  _service=service;
}
Program: 50880
Project: 50880
Buggy source:
public void writeExternal(ObjectOutput out) throws IOException {
  out.writeInt(VERSION);
  out.writeUTF(_service);
  out.writeUTF(_processDefinition);
  out.writeUTF(_processInstance);
  out.writeUTF(_task);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void writeExternal(ObjectOutput out) throws IOException {
  out.writeInt(VERSION);
  out.writeUTF(_service);
  out.writeUTF(_processDefinition);
  out.writeUTF(_processInstance);
  out.writeUTF(_task);
}
Program: 50881
Project: 50881
Buggy source:
public String getProcessDefinition(){
  return (_processDefinition);
}

Fixed version (ground truth):
/** 
 * This method gets the process definition.
 * @return The process definition
 */
public String getProcessDefinition(){
  return (_processDefinition);
}
Program: 50882
Project: 50882
Buggy source:
public void setProcessInstance(String pi){
  _processInstance=pi;
}

Fixed version (ground truth):
/** 
 * This method sets the process instance.
 * @param pi The process instance
 */
public void setProcessInstance(String pi){
  _processInstance=pi;
}
Program: 50883
Project: 50883
Buggy source:
public void setTask(String task){
  _task=task;
}

Fixed version (ground truth):
/** 
 * This method sets the task.
 * @param task The task
 */
public void setTask(String task){
  _task=task;
}
Program: 50884
Project: 50884
Buggy source:
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  in.readInt();
  _service=in.readUTF();
  _processDefinition=in.readUTF();
  _processInstance=in.readUTF();
  _task=in.readUTF();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  in.readInt();
  _service=in.readUTF();
  _processDefinition=in.readUTF();
  _processInstance=in.readUTF();
  _task=in.readUTF();
}
Program: 50885
Project: 50885
Buggy source:
public Component(Component comp){
  _service=comp._service;
  _processDefinition=comp._processDefinition;
  _processInstance=comp._processInstance;
  _task=comp._task;
}

Fixed version (ground truth):
/** 
 * The copy constructor.
 * @param comp The component to copy.
 */
public Component(Component comp){
  _service=comp._service;
  _processDefinition=comp._processDefinition;
  _processInstance=comp._processInstance;
  _task=comp._task;
}
Program: 50886
Project: 50886
Buggy source:
public String getService(){
  return (_service);
}

Fixed version (ground truth):
/** 
 * This method gets the service.
 * @return The service
 */
public String getService(){
  return (_service);
}
Program: 50887
Project: 50887
Buggy source:
public void setProcessDefinition(String pd){
  _processDefinition=pd;
}

Fixed version (ground truth):
/** 
 * This method sets the process definition.
 * @param pd The process definition
 */
public void setProcessDefinition(String pd){
  _processDefinition=pd;
}
Program: 50888
Project: 50888
Buggy source:
public String getTask(){
  return (_task);
}

Fixed version (ground truth):
/** 
 * This method gets the task.
 * @return The task
 */
public String getTask(){
  return (_task);
}
Program: 50892
Project: 50892
Buggy source:
@Override public @Bean Mongo mongo() throws PhrescoException {
  Mongo mongo=null;
  try {
    mongo=new Mongo("String_Node_Str",config.getDbPort());
  }
 catch (  UnknownHostException e) {
    throw new PhrescoException(EX_PHEX00002);
  }
catch (  MongoException e) {
    throw new PhrescoException(EX_PHEX00003);
  }
  return mongo;
}

Fixed version (ground truth):
@Override public @Bean Mongo mongo() throws PhrescoException {
  Mongo mongo=null;
  try {
    mongo=new Mongo(config.getDbHost(),config.getDbPort());
  }
 catch (  UnknownHostException e) {
    throw new PhrescoException(EX_PHEX00002);
  }
catch (  MongoException e) {
    throw new PhrescoException(EX_PHEX00003);
  }
  return mongo;
}
Program: 50893
Project: 50893
Buggy source:
public void setContactNumber(String contactNumber){
  this.contactNumber=contactNumber;
}

Fixed version (ground truth):
/** 
 * @param contactNumber
 */
public void setContactNumber(String contactNumber){
  this.contactNumber=contactNumber;
}
Program: 50894
Project: 50894
Buggy source:
public void setCountry(String country){
  this.country=country;
}

Fixed version (ground truth):
/** 
 * @param country
 */
public void setCountry(String country){
  this.country=country;
}
Program: 50895
Project: 50895
Buggy source:
public String getHelpText(){
  return helpText;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getHelpText(){
  return helpText;
}
Program: 50896
Project: 50896
Buggy source:
public String getCountry(){
  return country;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getCountry(){
  return country;
}
Program: 50897
Project: 50897
Buggy source:
public Customer(String id,String name,String description){
  this.id=id;
  this.name=name;
  this.description=description;
}

Fixed version (ground truth):
/** 
 * @param id
 * @param name
 * @param description
 */
public Customer(String id,String name,String description){
  super(id,name,description);
}
Program: 50898
Project: 50898
Buggy source:
public void setEmailId(String emailId){
  this.emailId=emailId;
}

Fixed version (ground truth):
/** 
 * @param emailId
 */
public void setEmailId(String emailId){
  this.emailId=emailId;
}
Program: 50899
Project: 50899
Buggy source:
public void setValidFrom(String validFrom){
  this.validFrom=validFrom;
}

Fixed version (ground truth):
/** 
 * @param validFrom
 */
public void setValidFrom(Date validFrom){
  this.validFrom=validFrom;
}
Program: 50900
Project: 50900
Buggy source:
public String getEmailId(){
  return emailId;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getEmailId(){
  return emailId;
}
Program: 50901
Project: 50901
Buggy source:
public int getStatus(){
  return status;
}

Fixed version (ground truth):
/** 
 * @return
 */
public CustomerStatus getStatus(){
  return status;
}
Program: 50902
Project: 50902
Buggy source:
public String getZipcode(){
  return zipcode;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getZipcode(){
  return zipcode;
}
Program: 50903
Project: 50903
Buggy source:
public void setFax(String fax){
  this.fax=fax;
}

Fixed version (ground truth):
/** 
 * @param fax
 */
public void setFax(String fax){
  this.fax=fax;
}
Program: 50904
Project: 50904
Buggy source:
public String getAddress(){
  return address;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getAddress(){
  return address;
}
Program: 50905
Project: 50905
Buggy source:
public String getContactNumber(){
  return contactNumber;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getContactNumber(){
  return contactNumber;
}
Program: 50906
Project: 50906
Buggy source:
public void setAddress(String address){
  this.address=address;
}

Fixed version (ground truth):
/** 
 * @param address
 */
public void setAddress(String address){
  this.address=address;
}
Program: 50907
Project: 50907
Buggy source:
public void setValidUpto(String validUpto){
  this.validUpto=validUpto;
}

Fixed version (ground truth):
/** 
 * @param validUpto
 */
public void setValidUpto(Date validUpto){
  this.validUpto=validUpto;
}
Program: 50908
Project: 50908
Buggy source:
public void setRepoURL(String repoURL){
  this.repoURL=repoURL;
}

Fixed version (ground truth):
/** 
 * @param repoURL
 */
public void setRepoURL(URL repoURL){
  this.repoURL=repoURL;
}
Program: 50909
Project: 50909
Buggy source:
public String getValidFrom(){
  return validFrom;
}

Fixed version (ground truth):
/** 
 * @return
 */
public Date getValidFrom(){
  return validFrom;
}
Program: 50910
Project: 50910
Buggy source:
public void setType(int type){
  this.type=type;
}

Fixed version (ground truth):
/** 
 * @param type
 */
public void setType(int type){
  this.type=type;
}
Program: 50911
Project: 50911
Buggy source:
public String getRepoURL(){
  return repoURL;
}

Fixed version (ground truth):
/** 
 * @return
 */
public URL getRepoURL(){
  return repoURL;
}
Program: 50912
Project: 50912
Buggy source:
public void setStatus(int status){
  this.status=status;
}

Fixed version (ground truth):
/** 
 * @param status
 */
public void setStatus(CustomerStatus status){
  this.status=status;
}
Program: 50913
Project: 50913
Buggy source:
public String getFax(){
  return fax;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getFax(){
  return fax;
}
Program: 50914
Project: 50914
Buggy source:
public void setHelpText(String helpText){
  this.helpText=helpText;
}

Fixed version (ground truth):
/** 
 * @param helpText
 */
public void setHelpText(String helpText){
  this.helpText=helpText;
}
Program: 50915
Project: 50915
Buggy source:
public void setZipcode(String zipcode){
  this.zipcode=zipcode;
}

Fixed version (ground truth):
/** 
 * @param zipcode
 */
public void setZipcode(String zipcode){
  this.zipcode=zipcode;
}
Program: 50916
Project: 50916
Buggy source:
public String getState(){
  return state;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getState(){
  return state;
}
Program: 50917
Project: 50917
Buggy source:
public int getType(){
  return type;
}

Fixed version (ground truth):
/** 
 * @return
 */
public int getType(){
  return type;
}
Program: 50918
Project: 50918
Buggy source:
public void setState(String state){
  this.state=state;
}

Fixed version (ground truth):
/** 
 * @param state
 */
public void setState(String state){
  this.state=state;
}
Program: 50919
Project: 50919
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + emailId + "String_Node_Str"+ address+ "String_Node_Str"+ country+ "String_Node_Str"+ state+ "String_Node_Str"+ zipcode+ "String_Node_Str"+ contactNumber+ "String_Node_Str"+ fax+ "String_Node_Str"+ helpText+ "String_Node_Str"+ type+ "String_Node_Str"+ validFrom+ "String_Node_Str"+ validUpto+ "String_Node_Str"+ repoURL+ "String_Node_Str"+ status+ "String_Node_Str"+ id+ "String_Node_Str"+ name+ "String_Node_Str"+ description+ "String_Node_Str"+ creationDate+ "String_Node_Str";
}

Fixed version (ground truth):
public String toString(){
  return new ToStringBuilder(this,ToStringStyle.DEFAULT_STYLE).append(super.toString()).append("String_Node_Str",emailId).append("String_Node_Str",address).append("String_Node_Str",country).append("String_Node_Str",state).append("String_Node_Str",zipcode).append("String_Node_Str",contactNumber).append("String_Node_Str",fax).append("String_Node_Str",helpText).append("String_Node_Str",validFrom).append("String_Node_Str",validUpto).append("String_Node_Str",repoURL).append("String_Node_Str",status).append("String_Node_Str",type).toString();
}
Program: 50920
Project: 50920
Buggy source:
public String getValidUpto(){
  return validUpto;
}

Fixed version (ground truth):
/** 
 * @return
 */
public Date getValidUpto(){
  return validUpto;
}
Program: 50921
Project: 50921
Buggy source:
public void setName(String name){
  this.name=name;
}

Fixed version (ground truth):
/** 
 * @param name
 */
public void setName(String name){
  this.name=name;
}
Program: 50922
Project: 50922
Buggy source:
public String getCreationDate(){
  return creationDate;
}

Fixed version (ground truth):
/** 
 * @return
 */
public Date getCreationDate(){
  return creationDate;
}
Program: 50923
Project: 50923
Buggy source:
public String getName(){
  return name;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getName(){
  return name;
}
Program: 50924
Project: 50924
Buggy source:
public void setCreationDate(String creationDate){
  this.creationDate=creationDate;
}

Fixed version (ground truth):
/** 
 * @param creationDate
 */
public void setCreationDate(Date creationDate){
  this.creationDate=creationDate;
}
Program: 50925
Project: 50925
Buggy source:
public Element(String name,String description){
  super();
  this.name=name;
  this.description=description;
}

Fixed version (ground truth):
protected Element(String name,String description){
  super();
  this.name=name;
  this.description=description;
}
Program: 50926
Project: 50926
Buggy source:
public void setId(String id){
  this.id=id;
}

Fixed version (ground truth):
/** 
 * @param id
 */
public void setId(String id){
  this.id=id;
}
Program: 50927
Project: 50927
Buggy source:
public String getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getId(){
  return id;
}
Program: 50928
Project: 50928
Buggy source:
public void setDescription(String description){
  this.description=description;
}

Fixed version (ground truth):
/** 
 * @param description
 */
public void setDescription(String description){
  this.description=description;
}
Program: 50929
Project: 50929
Buggy source:
public String getDescription(){
  return description;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getDescription(){
  return description;
}
Program: 50930
Project: 50930
Buggy source:
public Permission(String name,String description){
  super(name,description);
}

Fixed version (ground truth):
/** 
 * @param name
 * @param description
 */
public Permission(String name,String description){
  super(name,description);
}
Program: 50931
Project: 50931
Buggy source:
@Override public String toString(){
  StringBuilder builder=new StringBuilder();
  builder.append("String_Node_Str");
  builder.append(id);
  builder.append("String_Node_Str");
  builder.append(name);
  builder.append("String_Node_Str");
  builder.append(description);
  builder.append("String_Node_Str");
  builder.append(creationDate);
  builder.append("String_Node_Str");
  return builder.toString();
}

Fixed version (ground truth):
public String toString(){
  return new ToStringBuilder(this,ToStringStyle.DEFAULT_STYLE).append(super.toString()).toString();
}
Program: 50932
Project: 50932
Buggy source:
public Role(String name,String description){
  super(name,description);
}

Fixed version (ground truth):
/** 
 * @param name
 * @param description
 */
public Role(String name,String description){
  super(name,description);
}
Program: 50933
Project: 50933
Buggy source:
public List<Permission> getPermissions(){
  return permissions;
}

Fixed version (ground truth):
/** 
 * @return
 */
public List<Permission> getPermissions(){
  return permissions;
}
Program: 50934
Project: 50934
Buggy source:
@Override public String toString(){
  StringBuilder builder=new StringBuilder();
  builder.append("String_Node_Str");
  builder.append(id);
  builder.append("String_Node_Str");
  builder.append(permissions);
  builder.append("String_Node_Str");
  builder.append(name);
  builder.append("String_Node_Str");
  builder.append(description);
  builder.append("String_Node_Str");
  builder.append(creationDate);
  builder.append("String_Node_Str");
  return builder.toString();
}

Fixed version (ground truth):
public String toString(){
  return new ToStringBuilder(this,ToStringStyle.DEFAULT_STYLE).append(super.toString()).append("String_Node_Str",permissions).toString();
}
Program: 50935
Project: 50935
Buggy source:
public void setPermissions(List<Permission> roles){
  this.permissions=roles;
}

Fixed version (ground truth):
/** 
 * @param roles
 */
public void setPermissions(List<Permission> roles){
  this.permissions=roles;
}
Program: 50936
Project: 50936
Buggy source:
public void setId(String id){
  this.id=id;
}

Fixed version (ground truth):
/** 
 * @param id
 */
public void setId(String id){
  this.id=id;
}
Program: 50937
Project: 50937
Buggy source:
public String getMessage(){
  return message;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getMessage(){
  return message;
}
Program: 50938
Project: 50938
Buggy source:
public String getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * @return
 */
public String getId(){
  return id;
}
Program: 50939
Project: 50939
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + id + "String_Node_Str"+ message+ "String_Node_Str";
}

Fixed version (ground truth):
public String toString(){
  return new ToStringBuilder(this,ToStringStyle.DEFAULT_STYLE).append("String_Node_Str",id).append("String_Node_Str",message).toString();
}
Program: 50940
Project: 50940
Buggy source:
public void setMessage(String message){
  this.message=message;
}

Fixed version (ground truth):
/** 
 * @param message
 */
public void setMessage(String message){
  this.message=message;
}
Program: 50942
Project: 50942
Buggy source:
private void renameWar(String context) throws MojoExecutionException {
  String contextName=context + "String_Node_Str";
  String warFileName="String_Node_Str";
  String[] list=tempDir.list(new JDWarFileNameFilter());
  if (list.length > 0) {
    warFileName=list[0];
    if (!warFileName.contains(contextName)) {
      File oldWar=new File(tempDir.getPath() + "String_Node_Str" + warFileName);
      File newWar=new File(tempDir.getPath() + "String_Node_Str" + contextName);
      oldWar.renameTo(newWar);
    }
  }
}

Fixed version (ground truth):
private void renameWar(String context) throws MojoExecutionException {
  String contextName=context + "String_Node_Str";
  String warFileName="String_Node_Str";
  String[] list=tempDir.list(new JDWarFileNameFilter());
  if (list.length > 0) {
    warFileName=list[0];
    if (!warFileName.equals(contextName)) {
      File oldWar=new File(tempDir.getPath() + "String_Node_Str" + warFileName);
      File newWar=new File(tempDir.getPath() + "String_Node_Str" + contextName);
      oldWar.renameTo(newWar);
    }
  }
}
Program: 50944
Project: 50944
Buggy source:
private void deployToWeblogicServer(String serverprotocol,String serverhost,String serverport,String serverusername,String serverpassword) throws MojoExecutionException {
  try {
    StringBuilder sb=new StringBuilder();
    sb.append(MVN_CMD);
    sb.append(STR_SPACE);
    sb.append(WEBLOGIC_GOAL);
    sb.append(STR_SPACE);
    sb.append(SERVER_HOST);
    sb.append(serverhost);
    sb.append(STR_SPACE);
    sb.append(SERVER_PORT);
    sb.append(serverport);
    sb.append(STR_SPACE);
    sb.append(SERVER_USERNAME);
    sb.append(serverusername);
    sb.append(STR_SPACE);
    sb.append(SERVER_PASSWORD);
    sb.append(serverpassword);
    sb.append(STR_SPACE);
    sb.append(SKIP_TESTS);
    Commandline cl=new Commandline(sb.toString());
    cl.setWorkingDirectory(baseDir);
    Process process=cl.execute();
    getLog().info("String_Node_Str" + serverprotocol + "String_Node_Str"+ serverhost+ "String_Node_Str"+ serverport+ "String_Node_Str"+ context);
  }
 catch (  CommandLineException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
private void deployToWeblogicServer(String serverprotocol,String serverhost,String serverport,String serverusername,String serverpassword) throws MojoExecutionException {
  BufferedReader in=null;
  boolean errorParam=false;
  try {
    StringBuilder sb=new StringBuilder();
    sb.append(MVN_CMD);
    sb.append(STR_SPACE);
    sb.append(WEBLOGIC_GOAL);
    sb.append(STR_SPACE);
    sb.append(SERVER_HOST);
    sb.append(serverhost);
    sb.append(STR_SPACE);
    sb.append(SERVER_PORT);
    sb.append(serverport);
    sb.append(STR_SPACE);
    sb.append(SERVER_USERNAME);
    sb.append(serverusername);
    sb.append(STR_SPACE);
    sb.append(SERVER_PASSWORD);
    sb.append(serverpassword);
    sb.append(STR_SPACE);
    sb.append(SKIP_TESTS);
    Commandline cl=new Commandline(sb.toString());
    cl.setWorkingDirectory(baseDir);
    Process process=cl.execute();
    in=new BufferedReader(new InputStreamReader(process.getInputStream()));
    String line=null;
    while ((line=in.readLine()) != null) {
      if (line.startsWith("String_Node_Str")) {
        System.out.println(line);
        errorParam=true;
      }
    }
    if (errorParam) {
      throw new MojoExecutionException("String_Node_Str");
    }
 else {
      getLog().info("String_Node_Str" + serverprotocol + "String_Node_Str"+ serverhost+ "String_Node_Str"+ serverport+ "String_Node_Str"+ context);
    }
  }
 catch (  CommandLineException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
catch (  IOException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}
Program: 50945
Project: 50945
Buggy source:
private void deployToJbossServer(String serverport,String serverprotocol,String serverhost,String serverusername,String serverpassword) throws MojoExecutionException {
  try {
    StringBuilder sb=new StringBuilder();
    sb.append(MVN_CMD);
    sb.append(STR_SPACE);
    sb.append(JBOSS_GOAL);
    sb.append(STR_SPACE);
    sb.append(SERVER_HOST);
    sb.append(serverhost);
    sb.append(STR_SPACE);
    sb.append(SERVER_USERNAME);
    sb.append(serverusername);
    sb.append(STR_SPACE);
    sb.append(SERVER_PASSWORD);
    sb.append(serverpassword);
    sb.append(STR_SPACE);
    sb.append(SKIP_TESTS);
    Commandline cl=new Commandline(sb.toString());
    cl.setWorkingDirectory(baseDir);
    Process process=cl.execute();
    getLog().info("String_Node_Str" + serverprotocol + "String_Node_Str"+ serverhost+ "String_Node_Str"+ serverport+ "String_Node_Str"+ context);
  }
 catch (  CommandLineException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
private void deployToJbossServer(String serverport,String serverprotocol,String serverhost,String serverusername,String serverpassword) throws MojoExecutionException {
  BufferedReader in=null;
  boolean errorParam=false;
  try {
    StringBuilder sb=new StringBuilder();
    sb.append(MVN_CMD);
    sb.append(STR_SPACE);
    sb.append(JBOSS_GOAL);
    sb.append(STR_SPACE);
    sb.append(SERVER_HOST);
    sb.append(serverhost);
    sb.append(STR_SPACE);
    sb.append(SERVER_USERNAME);
    sb.append(serverusername);
    sb.append(STR_SPACE);
    sb.append(SERVER_PASSWORD);
    sb.append(serverpassword);
    sb.append(STR_SPACE);
    sb.append(SKIP_TESTS);
    Commandline cl=new Commandline(sb.toString());
    cl.setWorkingDirectory(baseDir);
    Process process=cl.execute();
    in=new BufferedReader(new InputStreamReader(process.getInputStream()));
    String line=null;
    while ((line=in.readLine()) != null) {
      if (line.startsWith("String_Node_Str")) {
        System.out.println(line);
        errorParam=true;
      }
    }
    if (errorParam) {
      throw new MojoExecutionException("String_Node_Str");
    }
 else {
      getLog().info("String_Node_Str" + serverprotocol + "String_Node_Str"+ serverhost+ "String_Node_Str"+ serverport+ "String_Node_Str"+ context);
    }
  }
 catch (  CommandLineException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
catch (  IOException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}
Program: 50946
Project: 50946
Buggy source:
public void execute() throws MojoExecutionException {
  init();
  updateFinalName();
  createDb();
  extractBuild();
  deployToServer();
  cleanUp();
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException {
  init();
  createDb();
  extractBuild();
  deployToServer();
  cleanUp();
}