public static FilterCriteriaType createAndRegister(String name,  boolean collection, boolean map) {
        FilterCriteriaType type = create(name, collection, map);
        register(type);
        return type;
    }
public static FilterCriteriaType createAndRegister ( String name , boolean collection , boolean map ) { FilterCriteriaType type = create ( name , collection , map ) ; register ( type ) ; return type ; }
Create and register {@link FilterCriteriaType}
@param name name of current {@link FilterCriteriaType}
@param collection if true - {@link FilterCriteriaType} include {@link IModel} with {@link Collection}
@param map d
@return new {@link FilterCriteriaType}
@throws IllegalStateException if {@link FilterCriteriaType} with current name if already registered