public static Object scan(String type, String line) {
      Object ret = scanHelper(type, line);
      
      if (ret instanceof Class<?>) {
         Class<?> clazz = ((Class<?>)ret).getComponentType();
         if (clazz == null) {
            clazz = (Class<?>)ret;
         }
         return Array.newInstance(clazz,0);
      }
      return ret;
   }