* @param MV_returnarray
   * @return Module
   */
  public static Module computeModuleAndBareName(String name, Object [] MV_returnarray) {
    { Module module = ((Module)(Stella.$MODULE$.get()));

      { String barename = null;
        String modulename = null;
        Keyword kind = null;

        { Object [] caller_MV_returnarray = new Object[2];

          barename = Stella.parseStellaName(name, false, caller_MV_returnarray);
          modulename = ((String)(((StringWrapper)(caller_MV_returnarray[0])).wrapperValue));
          kind = ((Keyword)(caller_MV_returnarray[1]));
        }
        if (modulename != null) {
          module = Stella.getStellaModule(modulename, true);
        }
        if (kind == Stella.KWD_SYMBOL) {
          { Module _return_temp = module;

            MV_returnarray[0] = StringWrapper.wrapString(barename);
            return (_return_temp);
          }
        }
        else if (kind == Stella.KWD_SURROGATE) {
          { Module _return_temp = module;

            MV_returnarray[0] = StringWrapper.wrapString("@" + barename);
            return (_return_temp);
          }
        }
        else if (kind == Stella.KWD_KEYWORD) {
          { Module _return_temp = module;

            MV_returnarray[0] = StringWrapper.wrapString(":" + barename);
            return (_return_temp);
          }
        }
        else {
          { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

            stream000.nativeStream.print("`" + kind + "' is not a valid case option");
            throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
          }
        }
      }
    }
  }