nus-yam/ex-repair huggingface dataset:
Program: 94849
Project: 94849
Buggy source:
/** 
 * Returns true if the forum member is also a member of the group.
 * @param group
 * @return
 */
public boolean isMemberOf(IMemberGroup group);

Fixed version (ground truth):
/** 
 * Returns true if the forum member is also a member of the group.
 * @param group
 * @return <code>true</code> if this is member of given group, <code>false</code> otherwise.
 */
public boolean isMemberOf(IMemberGroup group);
Program: 94850
Project: 94850
Buggy source:
/** 
 * Returns the groups this member is part of or an empty list. Note: this method may return only a partial list.
 * @return
 */
public Collection getGroups();

Fixed version (ground truth):
/** 
 * Returns the groups this member is part of or an empty list. Note: this method may return only a partial list.
 * @return Collection of groups associated with this member.
 */
public Collection getGroups();
Program: 94851
Project: 94851
Buggy source:
/** 
 * Returns the moment in time when this message was posted. TODO Design timezone handling.
 * @return
 */
public Date getTimePosted();

Fixed version (ground truth):
/** 
 * Returns the moment in time when this message was posted. TODO Design timezone handling.
 * @return date that the message was posted.
 */
public Date getTimePosted();
Program: 94852
Project: 94852
Buggy source:
/** 
 * Destroy an ISharedObjectConnector instance.
 * @param connector the connector previously created via connectSharedObjects
 * @throws SharedObjectConnectException thrown if specified connector does not exist in the context of this container
 */
public void disconnectSharedObjects(ISharedObjectConnector connector) throws SharedObjectDisconnectException ;

Fixed version (ground truth):
/** 
 * Destroy an ISharedObjectConnector instance.
 * @param connector the connector previously created via connectSharedObjects
 * @throws SharedObjectDisconnectException thrown if specified connector does not exist in the context of this container
 */
public void disconnectSharedObjects(ISharedObjectConnector connector) throws SharedObjectDisconnectException ;
Program: 94853
Project: 94853
Buggy source:
/** 
 * Commit a set of Event instances previously prepared via  {@link #enqueue_prepare(Event[])}
 * @param enqueue_key the transaction key previously returned from the call to {@link #enqueue_prepare(Event[])}
 * @throws QueueException if commit cannot occur
 */
void enqueue_commit(Object enqueue_key);

Fixed version (ground truth):
/** 
 * Commit a set of Event instances previously prepared via  {@link #enqueue_prepare(Event[])}
 * @param enqueue_key the transaction key previously returned from the call to {@link #enqueue_prepare(Event[])}
 */
void enqueue_commit(Object enqueue_key);
Program: 94854
Project: 94854
Buggy source:
/** 
 * @return
 */
public IContainerManager getContainerManager(){
  return (IContainerManager)containerManagerServiceTracker.getService();
}

Fixed version (ground truth):
/** 
 * @return container manager.
 */
public IContainerManager getContainerManager(){
  return (IContainerManager)containerManagerServiceTracker.getService();
}
Program: 94855
Project: 94855
Buggy source:
protected void fireReceiveStartEvent(){
  listener.handleTransferEvent(new IIncomingFileTransferReceiveStartEvent(){
    private static final long serialVersionUID=-59096575294481755L;
    public IFileID getFileID(){
      return remoteFileID;
    }
    public IIncomingFileTransfer receive(    File localFileToSave) throws IOException {
      setOutputStream(new BufferedOutputStream(new FileOutputStream(localFileToSave)));
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
    public String toString(){
      final StringBuffer sb=new StringBuffer("String_Node_Str");
      sb.append("String_Node_Str").append(done).append("String_Node_Str");
      sb.append("String_Node_Str").append(bytesReceived).append("String_Node_Str");
      return sb.toString();
    }
    public void cancel(){
      hardClose();
    }
    /** 
 * @param streamToStore
 * @return
 * @throws IOException not thrown in this implementation.
 */
    public IIncomingFileTransfer receive(    OutputStream streamToStore) throws IOException {
      setOutputStream(streamToStore);
      setCloseOutputStream(false);
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
  }
);
}

Fixed version (ground truth):
protected void fireReceiveStartEvent(){
  listener.handleTransferEvent(new IIncomingFileTransferReceiveStartEvent(){
    private static final long serialVersionUID=-59096575294481755L;
    public IFileID getFileID(){
      return remoteFileID;
    }
    public IIncomingFileTransfer receive(    File localFileToSave) throws IOException {
      setOutputStream(new BufferedOutputStream(new FileOutputStream(localFileToSave)));
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
    public String toString(){
      final StringBuffer sb=new StringBuffer("String_Node_Str");
      sb.append("String_Node_Str").append(done).append("String_Node_Str");
      sb.append("String_Node_Str").append(bytesReceived).append("String_Node_Str");
      return sb.toString();
    }
    public void cancel(){
      hardClose();
    }
    /** 
 * @param streamToStore
 * @return incoming file transfer instance.
 * @throws IOException not thrown in this implementation.
 */
    public IIncomingFileTransfer receive(    OutputStream streamToStore) throws IOException {
      setOutputStream(streamToStore);
      setCloseOutputStream(false);
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
  }
);
}
Program: 94856
Project: 94856
Buggy source:
protected void fireReceiveResumedEvent(){
  listener.handleTransferEvent(new IIncomingFileTransferReceiveResumedEvent(){
    private static final long serialVersionUID=7111739642849612839L;
    public IFileID getFileID(){
      return remoteFileID;
    }
    public IIncomingFileTransfer receive(    File localFileToSave) throws IOException {
      setOutputStream(new BufferedOutputStream(new FileOutputStream(localFileToSave)));
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
    public String toString(){
      final StringBuffer sb=new StringBuffer("String_Node_Str");
      sb.append("String_Node_Str").append(done).append("String_Node_Str");
      sb.append("String_Node_Str").append(bytesReceived).append("String_Node_Str");
      return sb.toString();
    }
    public void cancel(){
      hardClose();
    }
    /** 
 * @param streamToStore
 * @return
 * @throws IOException not thrown in this implementation.
 */
    public IIncomingFileTransfer receive(    OutputStream streamToStore) throws IOException {
      setOutputStream(streamToStore);
      setCloseOutputStream(false);
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
  }
);
}

Fixed version (ground truth):
protected void fireReceiveResumedEvent(){
  listener.handleTransferEvent(new IIncomingFileTransferReceiveResumedEvent(){
    private static final long serialVersionUID=7111739642849612839L;
    public IFileID getFileID(){
      return remoteFileID;
    }
    public IIncomingFileTransfer receive(    File localFileToSave) throws IOException {
      setOutputStream(new BufferedOutputStream(new FileOutputStream(localFileToSave)));
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
    public String toString(){
      final StringBuffer sb=new StringBuffer("String_Node_Str");
      sb.append("String_Node_Str").append(done).append("String_Node_Str");
      sb.append("String_Node_Str").append(bytesReceived).append("String_Node_Str");
      return sb.toString();
    }
    public void cancel(){
      hardClose();
    }
    /** 
 * @param streamToStore
 * @return incoming file transfer instance.
 * @throws IOException not thrown in this implementation.
 */
    public IIncomingFileTransfer receive(    OutputStream streamToStore) throws IOException {
      setOutputStream(streamToStore);
      setCloseOutputStream(false);
      setupAndScheduleJob();
      return AbstractRetrieveFileTransfer.this;
    }
  }
);
}
Program: 94857
Project: 94857
Buggy source:
/** 
 * @param streamToStore
 * @return
 * @throws IOException not thrown in this implementation.
 */
public IIncomingFileTransfer receive(OutputStream streamToStore) throws IOException {
  setOutputStream(streamToStore);
  setCloseOutputStream(false);
  setupAndScheduleJob();
  return AbstractRetrieveFileTransfer.this;
}

Fixed version (ground truth):
/** 
 * @param streamToStore
 * @return incoming file transfer instance.
 * @throws IOException not thrown in this implementation.
 */
public IIncomingFileTransfer receive(OutputStream streamToStore) throws IOException {
  setOutputStream(streamToStore);
  setCloseOutputStream(false);
  setupAndScheduleJob();
  return AbstractRetrieveFileTransfer.this;
}
Program: 94858
Project: 94858
Buggy source:
/** 
 * @return
 */
private boolean openStreamsForResume(){
  final URL theURL=getRemoteFileURL();
  try {
    remoteFileURL=new URL(theURL.toString());
    connect();
    setResumeRequestHeaderValues();
    setInputStream(urlConnection.getInputStream());
    getResumeResponseHeaderValues();
    this.paused=false;
    fireReceiveResumedEvent();
    return true;
  }
 catch (  final Exception e) {
    this.exception=e;
    this.done=true;
    hardClose();
    fireTransferReceiveDoneEvent();
    return false;
  }
}

Fixed version (ground truth):
/** 
 * @return <code>true</code> if streams successfully, <code>false</code> otherwise.
 */
private boolean openStreamsForResume(){
  final URL theURL=getRemoteFileURL();
  try {
    remoteFileURL=new URL(theURL.toString());
    connect();
    setResumeRequestHeaderValues();
    setInputStream(urlConnection.getInputStream());
    getResumeResponseHeaderValues();
    this.paused=false;
    fireReceiveResumedEvent();
    return true;
  }
 catch (  final Exception e) {
    this.exception=e;
    this.done=true;
    hardClose();
    fireTransferReceiveDoneEvent();
    return false;
  }
}
Program: 94859
Project: 94859
Buggy source:
public void stop(BundleContext context) throws Exception {
  plugin=null;
  super.stop(context);
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
 */
public void stop(BundleContext context) throws Exception {
  plugin=null;
  super.stop(context);
}
Program: 94860
Project: 94860
Buggy source:
public void start(BundleContext context) throws Exception {
  super.start(context);
  plugin=this;
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
 */
public void start(BundleContext context) throws Exception {
  super.start(context);
  plugin=this;
}
Program: 94861
Project: 94861
Buggy source:
public void setProxy(Proxy proxy){
  this.proxy=proxy;
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.ecf.filetransfer.IRetrieveFileTransferContainerAdapter#setProxy(org.eclipse.ecf.core.util.Proxy)
 */
public void setProxy(Proxy proxy){
  this.proxy=proxy;
}
Program: 94862
Project: 94862
Buggy source:
public ID getID(){
  return remoteFileID;
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.ecf.core.identity.IIdentifiable#getID()
 */
public ID getID(){
  return remoteFileID;
}
Program: 94863
Project: 94863
Buggy source:
public void setConnectContextForAuthentication(IConnectContext connectContext){
  this.connectContext=connectContext;
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.ecf.filetransfer.IRetrieveFileTransferContainerAdapter#setConnectContextForAuthentication(org.eclipse.ecf.core.security.IConnectContext)
 */
public void setConnectContextForAuthentication(IConnectContext connectContext){
  this.connectContext=connectContext;
}
Program: 94864
Project: 94864
Buggy source:
public IRetrieveFileTransfer newInstance(){
  return new EFSRetrieveFileTransfer();
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.ecf.filetransfer.service.IRetrieveFileTransferFactory#newInstance()
 */
public IRetrieveFileTransfer newInstance(){
  return new EFSRetrieveFileTransfer();
}
Program: 94865
Project: 94865
Buggy source:
public Object getAdapter(Class adapter){
  IAdapterManager adapterManager=Activator.getDefault().getAdapterManager();
  if (adapterManager == null)   return null;
  return adapterManager.getAdapter(this,adapter);
}

Fixed version (ground truth):
public Object getAdapter(Class adapter){
  final IAdapterManager adapterManager=Activator.getDefault().getAdapterManager();
  if (adapterManager == null)   return null;
  return adapterManager.getAdapter(this,adapter);
}
Program: 94866
Project: 94866
Buggy source:
/** 
 * @deprecated Connection status should be the business of the maincontainer.
 */
public boolean isConnected(){
  return getID() != null;
}

Fixed version (ground truth):
/** 
 * @return <code>true</code> if connected, <code>false</code> otherwise.
 * @deprecated Connection status should be the business of the maincontainer.
 */
public boolean isConnected(){
  return getID() != null;
}
Program: 94867
Project: 94867
Buggy source:
public IMember getMember(ID id) throws BBException {
  if (cachedMembers.containsKey(id)) {
    return cachedMembers.get(id);
  }
 else {
    WebRequest request=createMemberPageRequest(id);
    try {
      request.execute();
      String str=request.getResponseBodyAsString();
      request.releaseConnection();
      IMember member=parser.parseMemberPageForName(str,id);
      if (member != null) {
        ((AbstractBBObject)member).setBulletinBoard(this);
        cachedMembers.put(member.getID(),member);
        return member;
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    return null;
  }
}

Fixed version (ground truth):
public IMember getMember(ID id) throws BBException {
  if (cachedMembers.containsKey(id)) {
    return cachedMembers.get(id);
  }
 else {
    final WebRequest request=createMemberPageRequest(id);
    try {
      request.execute();
      final String str=request.getResponseBodyAsString();
      request.releaseConnection();
      final IMember member=parser.parseMemberPageForName(str,id);
      if (member != null) {
        ((AbstractBBObject)member).setBulletinBoard(this);
        cachedMembers.put(member.getID(),member);
        return member;
      }
    }
 catch (    final Exception e) {
      e.printStackTrace();
    }
    return null;
  }
}
Program: 94868
Project: 94868
Buggy source:
public Collection<IMemberGroup> getMemberGroups() throws BBException {
  if (cachedMemberGroups.isEmpty()) {
    WebRequest request=createMemberGroupListRequest();
    try {
      request.execute();
      String str=request.getResponseBodyAsString();
      request.releaseConnection();
      cachedMemberGroups=parser.parseMemberGroups(str);
      for (      IMemberGroup grp : cachedMemberGroups.values()) {
        ((AbstractBBObject)grp).setBulletinBoard(this);
      }
    }
 catch (    IOException e) {
    }
  }
  return new HashSet<IMemberGroup>(cachedMemberGroups.values());
}

Fixed version (ground truth):
public Collection<IMemberGroup> getMemberGroups() throws BBException {
  if (cachedMemberGroups.isEmpty()) {
    final WebRequest request=createMemberGroupListRequest();
    try {
      request.execute();
      final String str=request.getResponseBodyAsString();
      request.releaseConnection();
      cachedMemberGroups=parser.parseMemberGroups(str);
      for (      final IMemberGroup grp : cachedMemberGroups.values()) {
        ((AbstractBBObject)grp).setBulletinBoard(this);
      }
    }
 catch (    final IOException e) {
    }
  }
  return new HashSet<IMemberGroup>(cachedMemberGroups.values());
}
Program: 94869
Project: 94869
Buggy source:
public void postConnect(){
  try {
    this.url=new URL(getID().toExternalForm());
    MultiThreadedHttpConnectionManager connectionManager=new MultiThreadedHttpConnectionManager();
    httpClient=new HttpClient(connectionManager);
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void postConnect(){
  try {
    this.url=new URL(getID().toExternalForm());
    final MultiThreadedHttpConnectionManager connectionManager=new MultiThreadedHttpConnectionManager();
    httpClient=new HttpClient(connectionManager);
  }
 catch (  final MalformedURLException e) {
    e.printStackTrace();
  }
}
Program: 94870
Project: 94870
Buggy source:
/** 
 * @deprecated Connection status should be the business of the maincontainer.
 */
public void close() throws BBException {
  if (isConnected()) {
    mainContainer.disconnect();
  }
 else {
    throw new BBException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * @throws BBException 
 * @deprecated Connection status should be the business of the maincontainer.
 */
public void close() throws BBException {
  if (isConnected()) {
    mainContainer.disconnect();
  }
 else {
    throw new BBException("String_Node_Str");
  }
}
Program: 94871
Project: 94871
Buggy source:
public List<IMember> getMembers() throws BBException {
  if (cachedMembers.isEmpty()) {
    WebRequest request=createMemberListRequest();
    try {
      request.execute();
      String str=request.getResponseBodyAsString();
      request.releaseConnection();
      cachedMembers=parser.parseMembers(str);
      for (      IMember member : cachedMembers.values()) {
        ((AbstractBBObject)member).setBulletinBoard(this);
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return new ArrayList<IMember>(cachedMembers.values());
}

Fixed version (ground truth):
public List<IMember> getMembers() throws BBException {
  if (cachedMembers.isEmpty()) {
    final WebRequest request=createMemberListRequest();
    try {
      request.execute();
      final String str=request.getResponseBodyAsString();
      request.releaseConnection();
      cachedMembers=parser.parseMembers(str);
      for (      final IMember member : cachedMembers.values()) {
        ((AbstractBBObject)member).setBulletinBoard(this);
      }
    }
 catch (    final IOException e) {
      e.printStackTrace();
    }
  }
  return new ArrayList<IMember>(cachedMembers.values());
}
Program: 94872
Project: 94872
Buggy source:
/** 
 * Creates a named and identified IBBObject implementation.
 * @param id the object's identifier
 * @param name the object's name
 * @return the created IBBObject implementation
 */
public IBBObject createBBObject(ID id,String name,Map<String,Object> parameters);

Fixed version (ground truth):
/** 
 * Creates a named and identified IBBObject implementation.
 * @param id the object's identifier
 * @param name the object's name
 * @param parameters any parameters
 * @return the created IBBObject implementation
 */
public IBBObject createBBObject(ID id,String name,Map<String,Object> parameters);
Program: 94873
Project: 94873
Buggy source:
public XMPPConnection getXMPPConnection(){
  ECFConnection conn=getECFConnection();
  if (conn == null)   return null;
 else   return conn.getXMPPConnection();
}

Fixed version (ground truth):
public XMPPConnection getXMPPConnection(){
  final ECFConnection conn=getECFConnection();
  if (conn == null)   return null;
 else   return conn.getXMPPConnection();
}
Program: 94874
Project: 94874
Buggy source:
public void disconnect(){
  ID groupID=getConnectedID();
  fireContainerEvent(new ContainerDisconnectingEvent(this.getID(),groupID));
synchronized (getConnectLock()) {
    if (isConnected()) {
      ISynchAsynchConnection conn=getConnection();
synchronized (conn) {
synchronized (getGroupMembershipLock()) {
          handleLeave(groupID,conn);
        }
      }
    }
    this.connection=null;
    remoteServerID=null;
    accountManager.setConnection(null);
    chatRoomManager.setConnection(null,null,null);
    outgoingFileTransferContainerAdapter.setConnection(null);
    presenceHelper.disconnect();
    getSharedObjectManager().removeSharedObject(presenceHelperID);
  }
  fireContainerEvent(new ContainerDisconnectedEvent(this.getID(),groupID));
}

Fixed version (ground truth):
public void disconnect(){
  final ID groupID=getConnectedID();
  fireContainerEvent(new ContainerDisconnectingEvent(this.getID(),groupID));
synchronized (getConnectLock()) {
    if (isConnected()) {
      final ISynchAsynchConnection conn=getConnection();
synchronized (conn) {
synchronized (getGroupMembershipLock()) {
          handleLeave(groupID,conn);
        }
      }
    }
    this.connection=null;
    remoteServerID=null;
    accountManager.setConnection(null);
    chatRoomManager.setConnection(null,null,null);
    outgoingFileTransferContainerAdapter.setConnection(null);
    presenceHelper.disconnect();
    getSharedObjectManager().removeSharedObject(presenceHelperID);
  }
  fireContainerEvent(new ContainerDisconnectedEvent(this.getID(),groupID));
}
Program: 94875
Project: 94875
Buggy source:
protected Object createConnectData(ID target,Callback[] cbs,Object data){
  if (cbs.length > 0) {
    if (cbs[0] instanceof ObjectCallback) {
      ObjectCallback cb=(ObjectCallback)cbs[0];
      return cb.getObject();
    }
  }
  return data;
}

Fixed version (ground truth):
protected Object createConnectData(ID target,Callback[] cbs,Object data){
  if (cbs.length > 0) {
    if (cbs[0] instanceof ObjectCallback) {
      final ObjectCallback cb=(ObjectCallback)cbs[0];
      return cb.getObject();
    }
  }
  return data;
}
Program: 94876
Project: 94876
Buggy source:
protected boolean isGoogle(ID remoteSpace){
  if (remoteSpace instanceof XMPPID) {
    XMPPID theID=(XMPPID)remoteSpace;
    String host=theID.getHostname();
    return googleNames.contains(host.toLowerCase());
  }
  return false;
}

Fixed version (ground truth):
protected boolean isGoogle(ID remoteSpace){
  if (remoteSpace instanceof XMPPID) {
    final XMPPID theID=(XMPPID)remoteSpace;
    final String host=theID.getHostname();
    if (host == null)     return false;
    return googleNames.contains(host.toLowerCase());
  }
  return false;
}
Program: 94877
Project: 94877
Buggy source:
protected ID handleConnectResponse(ID originalTarget,Object serverData) throws Exception {
  if (originalTarget != null && !originalTarget.equals(getID())) {
    addNewRemoteMember(originalTarget,null);
    ECFConnection conn=getECFConnection();
    accountManager.setConnection(conn.getXMPPConnection());
    chatRoomManager.setConnection(getConnectNamespace(),originalTarget,conn);
    presenceHelper.setUser(new User(originalTarget));
    outgoingFileTransferContainerAdapter.setConnection(conn.getXMPPConnection());
    return originalTarget;
  }
 else   throw new ConnectException(Messages.XMPPContainer_EXCEPTION_INVALID_RESPONSE_FROM_SERVER);
}

Fixed version (ground truth):
protected ID handleConnectResponse(ID originalTarget,Object serverData) throws Exception {
  if (originalTarget != null && !originalTarget.equals(getID())) {
    addNewRemoteMember(originalTarget,null);
    final ECFConnection conn=getECFConnection();
    accountManager.setConnection(conn.getXMPPConnection());
    chatRoomManager.setConnection(getConnectNamespace(),originalTarget,conn);
    presenceHelper.setUser(new User(originalTarget));
    outgoingFileTransferContainerAdapter.setConnection(conn.getXMPPConnection());
    return originalTarget;
  }
 else   throw new ConnectException(Messages.XMPPContainer_EXCEPTION_INVALID_RESPONSE_FROM_SERVER);
}
Program: 94878
Project: 94878
Buggy source:
protected Callback[] createAuthorizationCallbacks(){
  Callback[] cbs=new Callback[1];
  cbs[0]=new ObjectCallback();
  return cbs;
}

Fixed version (ground truth):
protected Callback[] createAuthorizationCallbacks(){
  final Callback[] cbs=new Callback[1];
  cbs[0]=new ObjectCallback();
  return cbs;
}
Program: 94879
Project: 94879
Buggy source:
public void connect(ID remote,IConnectContext joinContext) throws ContainerConnectException {
  try {
    getSharedObjectManager().addSharedObject(presenceHelperID,presenceHelper,null);
    super.connect(remote,joinContext);
  }
 catch (  ContainerConnectException e) {
    disconnect();
    throw e;
  }
catch (  SharedObjectAddException e1) {
    disconnect();
    throw new ContainerConnectException(NLS.bind(Messages.XMPPContainer_EXCEPTION_ADDING_SHARED_OBJECT,presenceHelperID),e1);
  }
}

Fixed version (ground truth):
public void connect(ID remote,IConnectContext joinContext) throws ContainerConnectException {
  try {
    getSharedObjectManager().addSharedObject(presenceHelperID,presenceHelper,null);
    super.connect(remote,joinContext);
  }
 catch (  final ContainerConnectException e) {
    disconnect();
    throw e;
  }
catch (  final SharedObjectAddException e1) {
    disconnect();
    throw new ContainerConnectException(NLS.bind(Messages.XMPPContainer_EXCEPTION_ADDING_SHARED_OBJECT,presenceHelperID),e1);
  }
}
Program: 94880
Project: 94880
Buggy source:
protected boolean handleAsExtension(Packet packet){
  Iterator i=packet.getExtensions();
  for (; i.hasNext(); ) {
    Object extension=i.next();
    if (extension instanceof XHTMLExtension) {
      XHTMLExtension xhtmlExtension=(XHTMLExtension)extension;
      deliverEvent(new MessageEvent((Message)packet,xhtmlExtension.getBodies()));
      return true;
    }
    if (packet instanceof Presence && extension instanceof MUCUser) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean handleAsExtension(Packet packet){
  final Iterator i=packet.getExtensions();
  for (; i.hasNext(); ) {
    final Object extension=i.next();
    if (extension instanceof XHTMLExtension) {
      final XHTMLExtension xhtmlExtension=(XHTMLExtension)extension;
      deliverEvent(new MessageEvent((Message)packet,xhtmlExtension.getBodies()));
      return true;
    }
    if (packet instanceof Presence && extension instanceof MUCUser) {
      return true;
    }
  }
  return false;
}
Program: 94881
Project: 94881
Buggy source:
protected ISynchAsynchConnection createConnection(ID remoteSpace,Object data) throws ConnectionCreateException {
  boolean google=isGoogle(remoteSpace);
  return new ECFConnection(google,getConnectNamespace(),receiver);
}

Fixed version (ground truth):
protected ISynchAsynchConnection createConnection(ID remoteSpace,Object data) throws ConnectionCreateException {
  final boolean google=isGoogle(remoteSpace);
  return new ECFConnection(google,getConnectNamespace(),receiver);
}
Program: 94882
Project: 94882
Buggy source:
protected void deliverEvent(Event evt){
  SOWrapper wrap=getSharedObjectWrapper(presenceHelperID);
  if (wrap != null)   wrap.deliverEvent(evt);
}

Fixed version (ground truth):
protected void deliverEvent(Event evt){
  final SOWrapper wrap=getSharedObjectWrapper(presenceHelperID);
  if (wrap != null)   wrap.deliverEvent(evt);
}
Program: 94883
Project: 94883
Buggy source:
protected Object getConnectData(ID remote,IConnectContext joinContext) throws IOException, UnsupportedCallbackException {
  Callback[] callbacks=createAuthorizationCallbacks();
  if (joinContext != null && callbacks != null && callbacks.length > 0) {
    CallbackHandler handler=joinContext.getCallbackHandler();
    if (handler != null) {
      handler.handle(callbacks);
    }
    if (callbacks[0] instanceof ObjectCallback) {
      ObjectCallback cb=(ObjectCallback)callbacks[0];
      return cb.getObject();
    }
  }
  return null;
}

Fixed version (ground truth):
protected Object getConnectData(ID remote,IConnectContext joinContext) throws IOException, UnsupportedCallbackException {
  final Callback[] callbacks=createAuthorizationCallbacks();
  if (joinContext != null && callbacks != null && callbacks.length > 0) {
    final CallbackHandler handler=joinContext.getCallbackHandler();
    if (handler != null) {
      handler.handle(callbacks);
    }
    if (callbacks[0] instanceof ObjectCallback) {
      final ObjectCallback cb=(ObjectCallback)callbacks[0];
      return cb.getObject();
    }
  }
  return null;
}
Program: 94884
Project: 94884
Buggy source:
protected Roster getRoster() throws IOException {
  ECFConnection connection=getECFConnection();
  if (connection != null) {
    return connection.getRoster();
  }
 else   return null;
}

Fixed version (ground truth):
protected Roster getRoster() throws IOException {
  final ECFConnection connection=getECFConnection();
  if (connection != null) {
    return connection.getRoster();
  }
 else   return null;
}
Program: 94886
Project: 94886
Buggy source:
public XMPPID(Namespace namespace,String unamehost) throws URISyntaxException {
  super(namespace);
  unamehost=fixEscape(unamehost);
  if (unamehost == null)   throw new URISyntaxException(unamehost,"String_Node_Str");
  int atIndex=unamehost.lastIndexOf(USER_HOST_DELIMITER);
  if (atIndex == -1)   throw new URISyntaxException(unamehost,"String_Node_Str");
  username=unamehost.substring(0,atIndex);
  final String remainder=unamehost.substring(atIndex + 1);
  atIndex=remainder.lastIndexOf(PORT_DELIMITER);
  if (atIndex != -1) {
    try {
      final int slashLoc=remainder.indexOf(PATH_DELIMITER);
      if (slashLoc != -1)       port=Integer.parseInt(remainder.substring(atIndex + 1,slashLoc));
 else       port=Integer.parseInt(remainder.substring(atIndex + 1));
    }
 catch (    final NumberFormatException e) {
      throw new URISyntaxException(unamehost,"String_Node_Str");
    }
    hostname=remainder.substring(0,atIndex);
  }
  atIndex=remainder.indexOf(PATH_DELIMITER);
  if (atIndex != -1) {
    if (hostname == null)     hostname=remainder.substring(0,atIndex);
    resourcename=PATH_DELIMITER + remainder.substring(atIndex + 1);
  }
 else {
    resourcename=PATH_DELIMITER + ECFConnection.CLIENT_TYPE;
  }
  uri=new URI(namespace.getScheme(),username,hostname,port,resourcename,null,null);
}

Fixed version (ground truth):
public XMPPID(Namespace namespace,String unamehost) throws URISyntaxException {
  super(namespace);
  unamehost=fixEscape(unamehost);
  if (unamehost == null)   throw new URISyntaxException(unamehost,"String_Node_Str");
  int atIndex=unamehost.lastIndexOf(USER_HOST_DELIMITER);
  if (atIndex == -1)   throw new URISyntaxException(unamehost,"String_Node_Str");
  username=unamehost.substring(0,atIndex);
  final String remainder=unamehost.substring(atIndex + 1);
  atIndex=remainder.lastIndexOf(PORT_DELIMITER);
  if (atIndex != -1) {
    try {
      final int slashLoc=remainder.indexOf(PATH_DELIMITER);
      if (slashLoc != -1)       port=Integer.parseInt(remainder.substring(atIndex + 1,slashLoc));
 else       port=Integer.parseInt(remainder.substring(atIndex + 1));
    }
 catch (    final NumberFormatException e) {
      throw new URISyntaxException(unamehost,"String_Node_Str");
    }
    hostname=remainder.substring(0,atIndex);
  }
  atIndex=remainder.indexOf(PATH_DELIMITER);
  if (atIndex != -1) {
    if (hostname == null)     hostname=remainder.substring(0,atIndex);
    resourcename=PATH_DELIMITER + remainder.substring(atIndex + 1);
  }
 else {
    resourcename=PATH_DELIMITER + ECFConnection.CLIENT_TYPE;
  }
  if (hostname == null)   hostname=remainder;
  uri=new URI(namespace.getScheme(),username,hostname,port,resourcename,null,null);
}
Program: 94887
Project: 94887
Buggy source:
protected boolean namespaceEquals(BaseID o){
  if (!(o instanceof XMPPID)) {
    return false;
  }
  XMPPID other=(XMPPID)o;
  return getUsernameAtHost().equals(other.getUsernameAtHost());
}

Fixed version (ground truth):
protected boolean namespaceEquals(BaseID o){
  if (!(o instanceof XMPPID)) {
    return false;
  }
  final XMPPID other=(XMPPID)o;
  return getUsernameAtHost().equals(other.getUsernameAtHost());
}
Program: 94888
Project: 94888
Buggy source:
public String toString(){
  StringBuffer sb=new StringBuffer("String_Node_Str");
  sb.append(uri.toString()).append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
public String toString(){
  final StringBuffer sb=new StringBuffer("String_Node_Str");
  sb.append(uri.toString()).append("String_Node_Str");
  return sb.toString();
}
Program: 94889
Project: 94889
Buggy source:
public XMPPID(Namespace namespace,String unamehost) throws URISyntaxException {
  super(namespace);
  unamehost=fixEscape(unamehost);
  if (unamehost == null)   throw new URISyntaxException(unamehost,"String_Node_Str");
  int atIndex=unamehost.lastIndexOf(USER_HOST_DELIMITER);
  if (atIndex == -1)   throw new URISyntaxException(unamehost,"String_Node_Str");
  username=unamehost.substring(0,atIndex);
  hostname=unamehost.substring(atIndex + 1);
  atIndex=hostname.lastIndexOf(PORT_DELIMITER);
  if (atIndex != -1) {
    try {
      port=Integer.parseInt(hostname.substring(atIndex + 1));
    }
 catch (    NumberFormatException e) {
      throw new URISyntaxException(unamehost,"String_Node_Str");
    }
    hostname=hostname.substring(0,atIndex);
  }
  atIndex=hostname.lastIndexOf(PATH_DELIMITER);
  if (atIndex != -1) {
    resourcename=PATH_DELIMITER + hostname.substring(atIndex + 1);
    hostname=hostname.substring(0,atIndex);
  }
 else {
    resourcename=PATH_DELIMITER + ECFConnection.CLIENT_TYPE;
  }
  uri=new URI(namespace.getScheme(),username,hostname,port,resourcename,null,null);
}

Fixed version (ground truth):
public XMPPID(Namespace namespace,String unamehost) throws URISyntaxException {
  super(namespace);
  unamehost=fixEscape(unamehost);
  if (unamehost == null)   throw new URISyntaxException(unamehost,"String_Node_Str");
  int atIndex=unamehost.lastIndexOf(USER_HOST_DELIMITER);
  if (atIndex == -1)   throw new URISyntaxException(unamehost,"String_Node_Str");
  username=unamehost.substring(0,atIndex);
  final String remainder=unamehost.substring(atIndex + 1);
  atIndex=remainder.lastIndexOf(PORT_DELIMITER);
  if (atIndex != -1) {
    try {
      final int slashLoc=remainder.indexOf(PATH_DELIMITER);
      if (slashLoc != -1)       port=Integer.parseInt(remainder.substring(atIndex + 1,slashLoc));
 else       port=Integer.parseInt(remainder.substring(atIndex + 1));
    }
 catch (    final NumberFormatException e) {
      throw new URISyntaxException(unamehost,"String_Node_Str");
    }
    hostname=remainder.substring(0,atIndex);
  }
  atIndex=remainder.indexOf(PATH_DELIMITER);
  if (atIndex != -1) {
    if (hostname == null)     hostname=remainder.substring(0,atIndex);
    resourcename=PATH_DELIMITER + remainder.substring(atIndex + 1);
  }
 else {
    resourcename=PATH_DELIMITER + ECFConnection.CLIENT_TYPE;
  }
  uri=new URI(namespace.getScheme(),username,hostname,port,resourcename,null,null);
}
Program: 94890
Project: 94890
Buggy source:
protected void handleUnregister(ID containerID,Long serviceId){
  Trace.entering(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_ENTERING,this.getClass(),"String_Node_Str",new Object[]{containerID,serviceId});
synchronized (remoteRegistrys) {
    final RemoteServiceRegistryImpl serviceRegistry=(RemoteServiceRegistryImpl)remoteRegistrys.get(containerID);
    if (serviceRegistry != null) {
      final RemoteServiceRegistrationImpl registration=serviceRegistry.findRegistrationForServiceId(serviceId.longValue());
      if (registration != null) {
        serviceRegistry.unpublishService(registration);
        unpublishServiceRegistration(registration.getContainerID());
        fireRemoteServiceListeners(createUnregisteredEvent(registration));
      }
    }
  }
  Trace.exiting(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_EXITING,this.getClass(),"String_Node_Str");
}

Fixed version (ground truth):
protected void handleUnregister(ID containerID,Long serviceId){
  Trace.entering(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_ENTERING,this.getClass(),"String_Node_Str",new Object[]{containerID,serviceId});
synchronized (remoteRegistrys) {
    final RemoteServiceRegistryImpl serviceRegistry=(RemoteServiceRegistryImpl)remoteRegistrys.get(containerID);
    if (serviceRegistry != null) {
      final RemoteServiceRegistrationImpl registration=serviceRegistry.findRegistrationForServiceId(serviceId.longValue());
      if (registration != null) {
        serviceRegistry.unpublishService(registration);
        unpublishServiceRegistrationsForContainer(registration.getContainerID());
        fireRemoteServiceListeners(createUnregisteredEvent(registration));
      }
    }
  }
  Trace.exiting(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_EXITING,this.getClass(),"String_Node_Str");
}
Program: 94891
Project: 94891
Buggy source:
public void dispose(ID containerID){
  super.dispose(containerID);
  remoteRegistrys.clear();
  serviceListeners.clear();
  serviceRegistrationMap.clear();
}

Fixed version (ground truth):
public void dispose(ID containerID){
  super.dispose(containerID);
  remoteRegistrys.clear();
  serviceListeners.clear();
  unpublishAllServiceRegistrations();
  localServiceRegistrations.clear();
}
Program: 94892
Project: 94892
Buggy source:
private void localRegisterService(RemoteServiceRegistrationImpl registration){
  final Object localServiceRegistrationValue=registration.getProperty(Constants.LOCAL_SERVICE_REGISTRATION);
  if (localServiceRegistrationValue != null) {
    final BundleContext context=Activator.getDefault().getContext();
    if (context == null)     return;
    final RemoteServiceImpl remoteServiceImpl=new RemoteServiceImpl(this,registration);
    Object service;
    try {
      service=remoteServiceImpl.getProxy();
    }
 catch (    final ECFException e) {
      e.printStackTrace();
      log("String_Node_Str",e);
      return;
    }
    final Hashtable properties=new Hashtable();
    final String[] keys=registration.getPropertyKeys();
    for (int i=0; i < keys.length; i++) {
      final Object value=registration.getProperty(keys[i]);
      if (value != null) {
        properties.put(keys[i],value);
      }
    }
    final ID remoteContainerID=registration.getContainerID();
    properties.put(Constants.SERVICE_REGISTRATION_CONTAINER_ID,remoteContainerID.getName());
    final ServiceRegistration reg=context.registerService(registration.getClasses(),service,properties);
    System.out.println("String_Node_Str" + reg);
    serviceRegistrationMap.put(remoteContainerID,reg);
  }
}

Fixed version (ground truth):
private void localRegisterService(RemoteServiceRegistrationImpl registration){
  final Object localServiceRegistrationValue=registration.getProperty(Constants.LOCAL_SERVICE_REGISTRATION);
  if (localServiceRegistrationValue != null) {
    final BundleContext context=Activator.getDefault().getContext();
    if (context == null)     return;
    final RemoteServiceImpl remoteServiceImpl=new RemoteServiceImpl(this,registration);
    Object service;
    try {
      service=remoteServiceImpl.getProxy();
    }
 catch (    final ECFException e) {
      e.printStackTrace();
      log("String_Node_Str",e);
      return;
    }
    final Hashtable properties=new Hashtable();
    final String[] keys=registration.getPropertyKeys();
    for (int i=0; i < keys.length; i++) {
      final Object value=registration.getProperty(keys[i]);
      if (value != null) {
        properties.put(keys[i],value);
      }
    }
    final ID remoteContainerID=registration.getContainerID();
    properties.put(Constants.SERVICE_REGISTRATION_CONTAINER_ID,remoteContainerID.getName());
    properties.put(Constants.REMOTE_SERVICE,remoteServiceImpl);
    final ServiceRegistration serviceRegistration=context.registerService(registration.getClasses(),service,properties);
    addLocalServiceRegistration(remoteContainerID,serviceRegistration);
  }
}
Program: 94893
Project: 94893
Buggy source:
protected void handleContainerDisconnectedEvent(IContainerDisconnectedEvent event){
  Trace.entering(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_ENTERING,this.getClass(),"String_Node_Str",event);
  final ID targetID=event.getTargetID();
synchronized (remoteRegistrys) {
    final RemoteServiceRegistryImpl registry=getRemoteRegistry(targetID);
    if (registry != null) {
      removeRemoteRegistry(targetID);
      final RemoteServiceRegistrationImpl registrations[]=registry.getRegistrations();
      if (registrations != null) {
        for (int i=0; i < registrations.length; i++) {
          registry.unpublishService(registrations[i]);
          unpublishServiceRegistration(registrations[i].getContainerID());
          fireRemoteServiceListeners(createUnregisteredEvent(registrations[i]));
        }
      }
    }
  }
  Trace.exiting(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_EXITING,this.getClass(),"String_Node_Str");
}

Fixed version (ground truth):
protected void handleContainerDisconnectedEvent(IContainerDisconnectedEvent event){
  Trace.entering(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_ENTERING,this.getClass(),"String_Node_Str",event);
  final ID targetID=event.getTargetID();
synchronized (remoteRegistrys) {
    final RemoteServiceRegistryImpl registry=getRemoteRegistry(targetID);
    if (registry != null) {
      removeRemoteRegistry(targetID);
      final RemoteServiceRegistrationImpl registrations[]=registry.getRegistrations();
      if (registrations != null) {
        for (int i=0; i < registrations.length; i++) {
          registry.unpublishService(registrations[i]);
          unpublishServiceRegistrationsForContainer(registrations[i].getContainerID());
          fireRemoteServiceListeners(createUnregisteredEvent(registrations[i]));
        }
      }
    }
  }
  Trace.exiting(Activator.PLUGIN_ID,IRemoteServiceProviderDebugOptions.METHODS_EXITING,this.getClass(),"String_Node_Str");
}
Program: 94894
Project: 94894
Buggy source:
private void retrieveBuddyList() throws IOException {
  write("String_Node_Str","String_Node_Str");
  BufferedReader reader=new BufferedReader(new InputStreamReader(getInputStream()));
  String input=reader.readLine();
  while (input == null || !input.startsWith("String_Node_Str")) {
    input=reader.readLine();
  }
  String[] split=StringUtils.splitOnSpace(input);
  int contacts=Integer.parseInt(split[4]);
  while (!input.startsWith("String_Node_Str")) {
    if (input.startsWith("String_Node_Str")) {
      client.internalSetDisplayName(StringUtils.splitSubstring(input,"String_Node_Str",2));
    }
 else     if (input.startsWith("String_Node_Str")) {
      split=StringUtils.splitOnSpace(input);
      list.addGroup(split[2],new Group(split[1]));
    }
    input=reader.readLine();
  }
  int count=0;
  while (true) {
    if (input.startsWith("String_Node_Str")) {
      count++;
      String[] contact=StringUtils.splitOnSpace(input);
      String email=contact[1].substring(2);
switch (contact.length) {
case 3:
        list.internalAddContact(email,email);
      break;
case 5:
    list.addContact(email,email,contact[3].substring(2));
  break;
default :
list.addContact(contact[2].substring(2),email,contact[3].substring(2),contact[5]);
break;
}
if (count == contacts) {
break;
}
}
input=reader.readLine();
}
write("String_Node_Str",client.getStatus().getLiteral() + "String_Node_Str");
idle();
ping();
}

Fixed version (ground truth):
private void retrieveBuddyList() throws IOException {
  write("String_Node_Str","String_Node_Str");
  BufferedReader reader=new BufferedReader(new InputStreamReader(getInputStream()));
  String input=reader.readLine();
  while (input == null || !input.startsWith("String_Node_Str")) {
    input=reader.readLine();
  }
  String[] split=StringUtils.splitOnSpace(input);
  int contacts=Integer.parseInt(split[4]);
  while (!input.startsWith("String_Node_Str")) {
    if (input.startsWith("String_Node_Str")) {
      client.internalSetDisplayName(StringUtils.splitSubstring(input,"String_Node_Str",2));
    }
 else     if (input.startsWith("String_Node_Str")) {
      split=StringUtils.splitOnSpace(input);
      list.addGroup(split[2],new Group(URLDecoder.decode(split[1])));
    }
    input=reader.readLine();
  }
  int count=0;
  while (true) {
    if (input.startsWith("String_Node_Str")) {
      count++;
      String[] contact=StringUtils.splitOnSpace(input);
      String email=contact[1].substring(2);
switch (contact.length) {
case 3:
        list.internalAddContact(email,email);
      break;
case 5:
    list.addContact(email,email,contact[3].substring(2));
  break;
default :
list.addContact(contact[2].substring(2),email,contact[3].substring(2),contact[5]);
break;
}
if (count == contacts) {
break;
}
}
input=reader.readLine();
}
write("String_Node_Str",client.getStatus().getLiteral() + "String_Node_Str");
idle();
ping();
}
Program: 94895
Project: 94895
Buggy source:
public void testCallAsynch() throws Exception {
  IRemoteService service=registerAndGetRemoteService();
  System.out.println("String_Node_Str");
  service.callAsynch(createRemoteConcat("String_Node_Str","String_Node_Str"),createRemoteCallListener());
  System.out.println("String_Node_Str");
  sleep(1500);
}

Fixed version (ground truth):
public void testCallAsynch() throws Exception {
  final IRemoteService service=registerAndGetRemoteService();
  System.out.println("String_Node_Str");
  service.callAsynch(createRemoteConcat("String_Node_Str","String_Node_Str"),createRemoteCallListener());
  System.out.println("String_Node_Str");
  sleep(1500);
}
Program: 94896
Project: 94896
Buggy source:
public void testProxy() throws Exception {
  IRemoteService service=registerAndGetRemoteService();
  IConcatService proxy=(IConcatService)service.getProxy();
  assertNotNull(proxy);
  System.out.println("String_Node_Str");
  String result=proxy.concat("String_Node_Str","String_Node_Str");
  System.out.println("String_Node_Str" + result);
  sleep(1500);
}

Fixed version (ground truth):
public void testProxy() throws Exception {
  final IRemoteService service=registerAndGetRemoteService();
  final IConcatService proxy=(IConcatService)service.getProxy();
  assertNotNull(proxy);
  System.out.println("String_Node_Str");
  final String result=proxy.concat("String_Node_Str","String_Node_Str");
  System.out.println("String_Node_Str" + result);
  sleep(1500);
}
Program: 94897
Project: 94897
Buggy source:
public String concat(String string1,String string2){
  String result=string1.concat(string2);
  System.out.println("String_Node_Str" + string1 + "String_Node_Str"+ string2+ "String_Node_Str"+ result);
  return string1.concat(string2);
}

Fixed version (ground truth):
public String concat(String string1,String string2){
  final String result=string1.concat(string2);
  System.out.println("String_Node_Str" + string1 + "String_Node_Str"+ string2+ "String_Node_Str"+ result);
  return string1.concat(string2);
}
Program: 94898
Project: 94898
Buggy source:
public void testRegisterService() throws Exception {
  IRemoteServiceContainerAdapter[] adapters=getRemoteServiceAdapters();
  IRemoteServiceRegistration reg=registerService(adapters[0],IConcatService.class.getName(),createService(),1500);
  assertNotNull(reg);
  assertNotNull(reg.getContainerID());
}

Fixed version (ground truth):
public void testRegisterService() throws Exception {
  final IRemoteServiceContainerAdapter[] adapters=getRemoteServiceAdapters();
  final IRemoteServiceRegistration reg=registerService(adapters[0],IConcatService.class.getName(),createService(),1500);
  assertNotNull(reg);
  assertNotNull(reg.getContainerID());
}
Program: 94899
Project: 94899
Buggy source:
protected IRemoteService registerAndGetRemoteService(){
  IRemoteServiceContainerAdapter[] adapters=getRemoteServiceAdapters();
  return registerAndGetRemoteService(adapters[0],adapters[1],IConcatService.class.getName(),1500);
}

Fixed version (ground truth):
protected IRemoteService registerAndGetRemoteService(){
  final IRemoteServiceContainerAdapter[] adapters=getRemoteServiceAdapters();
  return registerAndGetRemoteService(adapters[0],adapters[1],IConcatService.class.getName(),1500);
}
Program: 94900
Project: 94900
Buggy source:
public void testFireAsynch() throws Exception {
  IRemoteService service=registerAndGetRemoteService();
  System.out.println("String_Node_Str");
  service.fireAsynch(createRemoteConcat("String_Node_Str","String_Node_Str"));
  System.out.println("String_Node_Str");
  sleep(1500);
}

Fixed version (ground truth):
public void testFireAsynch() throws Exception {
  final IRemoteService service=registerAndGetRemoteService();
  System.out.println("String_Node_Str");
  service.fireAsynch(createRemoteConcat("String_Node_Str","String_Node_Str"));
  System.out.println("String_Node_Str");
  sleep(1500);
}