public boolean hasUnsupportedCriticalExtension(){
  Set extns=getCriticalExtensionOIDs();
  return extns != null && !extns.isEmpty();
}

public boolean hasUnsupportedCriticalExtension ( ) { Set extns = getCriticalExtensionOIDs ( ) ; return extns != null && ! extns . isEmpty ( ) ; }
will return true if any extensions are present and marked as critical as we currently don ' t handle any extensions !
