org.exist.collections.Collection coll = broker.getOrCreateCollection( collection );
org.exist.collections.Collection coll = broker.getOrCreateCollection( session.getUser(), collection );
    public boolean createCollection( String collection )         throws RemoteException {        DBBroker broker = null;        try {            broker = pool.get();            LOG.debug( "creating collection " + collection );            org.exist.collections.Collection coll = broker.getOrCreateCollection( collection );            if ( coll == null ) {                LOG.debug( "failed to create collection" );                return false;            }            broker.saveCollection( coll );            broker.flush();            broker.sync();            return true;        } catch ( Exception e ) {            LOG.debug( e );            throw new RemoteException( e.getMessage() );        } finally {            pool.release( broker );        }    }