/* */ try
/* */ {
/* 573 */ this.remoteImage.createRenderableOp(this.id, operationName, newPB);
/* */ } catch (RemoteException e) {
/* 575 */ String message = JaiI18N.getString("RMIServerProxy8");
/* 576 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */
/* 583 */ int size = getNumSources();
/* */
/* 585 */ for (int i = 0; i < size; i++)
/* */ {
/* 587 */ Vector sources = paramBlock.getSources();
/* 588 */ Object source = sources.elementAt(i);
/* */
/* 590 */ if ((source instanceof RMIServerProxy)) {
/* */ try {
/* 592 */ RMIServerProxy rop = (RMIServerProxy)source;
/* */
/* 594 */ if (rop.serverName.equals(this.serverName))
/* 595 */ this.remoteImage.setRenderableSource(this.id, rop.getRMIID(), i);
/* */ else {
/* 597 */ this.remoteImage.setRenderableSource(this.id, rop.getRMIID(), rop.serverName, rop.operationName, i);
/* */ }
/* */ }
/* */ catch (RemoteException e)
/* */ {
/* 602 */ String message = JaiI18N.getString("RMIServerProxy6");
/* 603 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */
/* */ }
/* 612 */ else if ((source instanceof RenderableOp)) {
/* */ try {
/* 614 */ this.remoteImage.setRenderableSource(this.id, (RenderableOp)source, i);
/* */ }
/* */ catch (RemoteException e)
/* */ {
/* 618 */ String message = JaiI18N.getString("RMIServerProxy6");
/* 619 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */
/* */ }
/* 628 */ else if ((source instanceof RenderedImage)) {
/* */ try {
/* 630 */ this.remoteImage.setRenderableSource(this.id, new SerializableRenderedImage((RenderedImage)source), i);
/* */ }
/* */ catch (RemoteException e)
/* */ {
/* 636 */ String message = JaiI18N.getString("RMIServerProxy6");
/* 637 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ try
/* */ {
/* 650 */ this.remoteImage.incrementRefCount(this.id);
/* */ } catch (RemoteException e) {
/* 652 */ String message = JaiI18N.getString("RMIServerProxy9");
/* 653 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */
/* 666 */ if (isRender)
/* */ try {
/* 668 */ this.renderingID = this.remoteImage.getRendering(this.id, SerializerFactory.getState(rc, null));
/* */
/* 673 */ this.remoteImage.incrementRefCount(this.renderingID);
/* */ } catch (RemoteException e) {
/* 675 */ String message = JaiI18N.getString("RMIServerProxy10");
/* 676 */ this.listener.errorOccurred(message, new RemoteImagingException(message, e), this, false);
/* */ }
/* */ }