public static EventTypeMetadata createBeanType(String name,Class clazz,boolean isPreConfiguredStatic,boolean isPreConfigured,boolean isConfigured,TypeClass typeClass){
  Set<String> secondaryNames=null;
  if (name == null) {
    name=clazz.getName();
  }
 else {
    if (!name.equals(clazz.getName())) {
      secondaryNames=new LinkedHashSet<String>();
      secondaryNames.add(clazz.getName());
    }
  }
  return new EventTypeMetadata(name,secondaryNames,typeClass,isPreConfiguredStatic,isPreConfigured,isConfigured,ApplicationType.CLASS,false);
}

public static EventTypeMetadata createBeanType ( String name , Class clazz , boolean isPreConfiguredStatic , boolean isPreConfigured , boolean isConfigured , TypeClass typeClass ) { Set < String > secondaryNames = null ; if ( name == null ) { name = clazz . getName ( ) ; } else { if ( ! name . equals ( clazz . getName ( ) ) ) { secondaryNames = new LinkedHashSet < String > ( ) ; secondaryNames . add ( clazz . getName ( ) ) ; } } return new EventTypeMetadata ( name , secondaryNames , typeClass , isPreConfiguredStatic , isPreConfigured , isConfigured , ApplicationType . CLASS , false ) ; }
factory for a bean type .
