private static int getReturn(Class type) {
    if (type.equals(Void.TYPE))
      return 0xb1;
    if (type.equals(Boolean.TYPE) || type.equals(Byte.TYPE)
        || type.equals(Character.TYPE) || type.equals(Short.TYPE)
        || type.equals(Integer.TYPE))
      return 0xac;
    if (type.equals(Long.TYPE))
      return 0xad;
    if (type.equals(Float.TYPE))
      return 0xae;
    if (type.equals(Double.TYPE))
      return 0xaf;
    return 0xb0;
  }