@Inject public ProjectTypeRegistry(Set<ProjectTypeDef> types){
  projectTypes=new HashMap<>();
  validatedData=new HashMap<>();
  validate(types);
  for (  ProjectTypeDef type : validatedData.values()) {
    try {
      init(type);
    }
 catch (    ProjectTypeConstraintException e) {
      LOG.error(e.getMessage());
    }
  }
}

@ Inject public ProjectTypeRegistry ( Set < ProjectTypeDef > types ) { projectTypes = new HashMap < > ( ) ; validatedData = new HashMap < > ( ) ; validate ( types ) ; for ( ProjectTypeDef type : validatedData . values ( ) ) { try { init ( type ) ; } catch ( ProjectTypeConstraintException e ) { LOG . error ( e . getMessage ( ) ) ; } } }
initialises set of project type definitions
