code: private static Geometry computeSingleSideBuffer(Geometry geometry, double distance, BufferParameters bufferParameters){
          bufferParameters.setSingleSided(true);
          return BufferOp.bufferOp(geometry, distance, bufferParameters);
      }
docs: Compute the buffer
  @param geometry
  @param distance
  @param bufferParameters
  @return