code: public static boolean within(Geometry geometry1, Geometry geometry2,
  			SpatialReference spatialReference) {
  		OperatorWithin op = (OperatorWithin) factory
  				.getOperator(Operator.Type.Within);
  		boolean result = op.execute(geometry1, geometry2, spatialReference,
  				null);
  		return result;
  	}
docs: Indicates if one geometry is within another geometry.
  
  See OperatorWithin.
  
  @param geometry1
  The base geometry that is tested for within relationship to
  the other geometry.
  @param geometry2
  The comparison geometry that is tested for the contains
  relationship to the other geometry.
  @param spatialReference
  The spatial reference of the geometries.
  @return TRUE if the first geometry is within the other geometry.