code: public Class getTypeClass() {
          try {
              return Class.forName(s.getContract().getClassNameForEntity(s.getName()));
          }
          catch (Exception e) {
              throw new RuntimeException(e);
          }
      }
docs: Returns the Class that matches: Contract.packageName + "." + Struct.name
  
  In the common case this will result in an Idl2Java generated Class.