* @param unitType the unit type
* @return the name
*/
@Nonnull
public static String getName( @Nonnull Class<? extends Annotation> unitType ) {
Name name = unitType.getAnnotation( Name.class );
if ( name == null ) {
throw new IllegalArgumentException( "Missing annotation " + Name.class.getName() + " for " + unitType );
}
return name.value();
}