code: public static boolean relate(Geometry geometry1, Geometry geometry2,
  			SpatialReference spatialReference, String relation) {
  		OperatorRelate op = (OperatorRelate) factory
  				.getOperator(Operator.Type.Relate);
  		boolean result = op.execute(geometry1, geometry2, spatialReference,
  				relation, null);
  		return result;
  	}
docs: Indicates if the given relation holds for the two geometries.
  
  See OperatorRelate.
  
  @param geometry1
  The first geometry for the relation.
  @param geometry2
  The second geometry for the relation.
  @param spatialReference
  The spatial reference of the geometries.
  @param relation
  The DE-9IM relation.
  @return TRUE if the given relation holds between geometry1 and geometry2.