code: private <T extends TransientObject> Class<T[]> getArrayType(Class<T> type){
          return (Class<T[]>) Array.newInstance(type, 0).getClass();
      }
docs: Convience method to convert a specified type to an Array of that specified type.
  Example: Class<Integer[]> intArrayType = getArrayType(Integer.class);
  @param type class you wish to have concrete array type of.
  @return concrete array type of type specified.