public void putResponseGetResource(String resourceId,ByteBuffer object){
  ResourceId rid=gson.fromJson(resourceId,ResourceId.class);
  logger.debug("Response resource {} from RemoteInterpreter",rid.getName());
  Object o=null;
  try {
    o=Resource.deserializeObject(object);
  }
 catch (  IOException e) {
    logger.error(e.getMessage(),e);
  }
catch (  ClassNotFoundException e) {
    logger.error(e.getMessage(),e);
  }
synchronized (getResourceResponse) {
    getResourceResponse.put(rid,o);
    getResourceResponse.notifyAll();
  }
}

public void putResponseGetResource ( String resourceId , ByteBuffer object ) { ResourceId rid = gson . fromJson ( resourceId , ResourceId . class ) ; logger . debug ( "Response resource {} from RemoteInterpreter" , rid . getName ( ) ) ; Object o = null ; try { o = Resource . deserializeObject ( object ) ; } catch ( IOException e ) { logger . error ( e . getMessage ( ) , e ) ; } catch ( ClassNotFoundException e ) { logger . error ( e . getMessage ( ) , e ) ; } synchronized ( getResourceResponse ) { getResourceResponse . put ( rid , o ) ; getResourceResponse . notifyAll ( ) ; } }
supposed to call from remoteinterpretereventpoller
