code: private JType findType( Class<?> clazz ) {
          if ( clazz.isPrimitive() ) {
  
              return JPrimitiveType.parse( clazz.getCanonicalName() );
  
          } else if ( clazz.isArray() ) {
  
              try {
                  return context.getTypeOracle().parse( clazz.getCanonicalName() );
              } catch ( TypeOracleException e ) {
                  logger.log( TreeLogger.WARN, "Cannot find the array denoted by the class " + clazz.getCanonicalName() );
                  return null;
              }
  
          } else {
              return findClassType( clazz );
          }
      }
docs: @param clazz class to find the type
  
  @return the {@link JType} denoted by the class given in parameter