private Content.Type getContentType(String suffix) {
		List<Content.Type<?>> cts = project.getParent().getContentTypes();
		//
		for (int i = 0; i != cts.size(); ++i) {
			Content.Type<?> ct = cts.get(i);
			if (ct.getSuffix().equals(suffix)) {
				// hit
				return ct;
			}
		}
		// miss
		throw new IllegalArgumentException("unknown content-type: " + suffix);
	}
private Content.Type getContentType(String suffix) {
		List<Content.Type<?>> cts = project.getParent().getContentTypes();
		
		for (int i = 0; i != cts.size(); ++i) {
			Content.Type<?> ct = cts.get(i);
			if (ct.getSuffix().equals(suffix)) {
				
				return ct;
			}
		}
		
		throw new IllegalArgumentException("unknown content-type: " + suffix);
	}
private Content . Type getContentType ( String suffix ) { List < Content . Type < ? > > cts = project . getParent ( ) . getContentTypes ( ) ; // for ( int i = 0 ; i != cts . size ( ) ; ++ i ) { Content . Type < ? > ct = cts . get ( i ) ; if ( ct . getSuffix ( ) . equals ( suffix ) ) { // hit return ct ; } } // miss throw new IllegalArgumentException ( "unknown content-type: " + suffix ) ; }
Determine the content type from the suffix of a given build/includes
attribute entry.

@param suffix
@return
Determine the content type from the suffix of a given build / includes attribute entry .