public boolean hasFeature(String feature,String version){
  if (feature.equals("Core")) {
    return version == null || version.equals("1.0") || version.equals("2.0");
  }
  return false;
}

public boolean hasFeature ( String feature , String version ) { if ( feature . equals ( "Core" ) ) { return version == null || version . equals ( "1.0" ) || version . equals ( "2.0" ) ; } return false ; }
test if the dom implementation implements a specific feature .
