예제 #1
0
  protected AMD_submit submitRequest(
      final ServiceFactoryI sf, final omero.cmd.Request req, final Ice.Current current)
      throws ServerError, InternalException {

    final AMD_submit submit = new AMD_submit();
    sf.submit_async(submit, req, current);
    if (submit.ex != null) {
      IceMapper mapper = new IceMapper();
      throw mapper.handleServerError(submit.ex, context);
    } else if (submit.ret == null) {
      throw new omero.InternalException(null, null, "No handle proxy found for: " + req);
    }
    return submit;
  }