code: public ManageableCollection createCollectionProxy(PBKey brokerKey, Query query, Class collectionClass)
      {
          Object args[] = {brokerKey, collectionClass, query};
  
          try
          {
              return (ManageableCollection) getCollectionProxyConstructor(collectionClass).newInstance(args);
          }
          catch(InstantiationException ex)
          {
              throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
          }
          catch(InvocationTargetException ex)
          {
              throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
          }
          catch(IllegalAccessException ex)
          {
              throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
          }
      }
docs: Create a Collection Proxy for a given query.
  
  @param brokerKey The key of the persistence broker
  @param query The query
  @param collectionClass The class to build the proxy for
  @return The collection proxy