public void add(final Extension<?,?> extension){
  if (extension.getExtensionType() != Extension.ExtensionType.IMMUTABLE && extension.getExtensionType() != Extension.ExtensionType.MUTABLE) {
    return;
  }
  add(newExtensionInfo(extension),extension.getExtensionType());
}

public void add ( final Extension < ? , ? > extension ) { if ( extension . getExtensionType ( ) != Extension . ExtensionType . IMMUTABLE && extension . getExtensionType ( ) != Extension . ExtensionType . MUTABLE ) { return ; } add ( newExtensionInfo ( extension ) , extension . getExtensionType ( ) ) ; }
add an extension from a generated file to the registry .
