code: private void preserveAttributes(AlluxioURI srcPath, AlluxioURI dstPath)
        throws IOException, AlluxioException {
      if (mPreservePermissions) {
        URIStatus srcStatus = mFileSystem.getStatus(srcPath);
        mFileSystem.setAttribute(dstPath, SetAttributePOptions.newBuilder()
            .setOwner(srcStatus.getOwner())
            .setGroup(srcStatus.getGroup())
            .setMode(new Mode((short) srcStatus.getMode()).toProto())
            .build());
        mFileSystem.setAcl(dstPath, SetAclAction.REPLACE, srcStatus.getAcl().getEntries());
      }
    }
docs: Preserves attributes from the source file to the target file.
  
  @param srcPath the source path
  @param dstPath the destination path in the Alluxio filesystem