add parameter to resume push or pull from a specified document for java clients