public Service getService( String name, String version ) throws XMLDBException { if ( name.equals( "XPathQueryService" ) ) return new RemoteXPathQueryService( this ); if ( name.equals( "CollectionManagementService" ) || name.equals( "CollectionManager" ) ) return new CollectionManagementServiceImpl( this, rpcClient ); if ( name.equals( "UserManagementService" ) ) return new UserManagementServiceImpl( this ); if ( name.equals( "DatabaseInstanceManager" ) ) return new DatabaseInstanceManagerImpl( rpcClient ); throw new XMLDBException( ErrorCodes.NO_SUCH_SERVICE ); }
public Service getService(String name, String version) throws XMLDBException { if (name.equals("XPathQueryService")) return new RemoteXPathQueryService(this); if (name.equals("CollectionManagementService") || name.equals("CollectionManager")) return new CollectionManagementServiceImpl(this, rpcClient); if (name.equals("UserManagementService")) return new UserManagementServiceImpl(this); if (name.equals("DatabaseInstanceManager")) return new DatabaseInstanceManagerImpl(rpcClient); if (name.equals("IndexQueryService")) return new RemoteIndexQueryService(rpcClient, this); throw new XMLDBException(ErrorCodes.NO_SUCH_SERVICE); }
    public Service getService( String name,                               String version ) throws XMLDBException {        if ( name.equals( "XPathQueryService" ) )            return new RemoteXPathQueryService( this );        if ( name.equals( "CollectionManagementService" ) ||            name.equals( "CollectionManager" ) )            return new CollectionManagementServiceImpl( this, rpcClient );        if ( name.equals( "UserManagementService" ) )            return new UserManagementServiceImpl( this );        if ( name.equals( "DatabaseInstanceManager" ) )        	return new DatabaseInstanceManagerImpl( rpcClient );        throw new XMLDBException( ErrorCodes.NO_SUCH_SERVICE );    }