private static boolean checkCompatible(MetadataKey<?> first,MetadataKey<?> second){
  boolean compatible=true;
  Class<?> firstType=first.getDatatype();
  Class<?> secondType=second.getDatatype();
  if (firstType != secondType) {
    logger.warning("Incompatible datatypes.  First(" + first + "): "+ firstType+ " but Second("+ second+ "): "+ secondType);
    compatible=false;
  }
  return compatible;
}

private static boolean checkCompatible ( MetadataKey < ? > first , MetadataKey < ? > second ) { boolean compatible = true ; Class < ? > firstType = first . getDatatype ( ) ; Class < ? > secondType = second . getDatatype ( ) ; if ( firstType != secondType ) { logger . warning ( "Incompatible datatypes.  First(" + first + "): " + firstType + " but Second(" + second + "): " + secondType ) ; compatible = false ; } return compatible ; }
checks that two metadata keys are compatible . the datatypes of the two metadata keys must be identical for them to be considered compatible .
